199,114 Archived Topics
Remove Filter ![]() | |
Hey there everyone.. I'm pretty new in this forum and also with Assembly, to be honest I haven't programmed anything in Assembly. I'm a VB Programmer and I work with some C/C++ But well that's not the reason I'm here hehe. On the forum I work at one of our … | |
If i were tto implement somthing like this :idea: cmd \k shutdown.exe -r on a button click would that saftley restart y comp. from that app. if not how would i do this :?: | |
Hi there! I'd like to check if a string is preceeded by another one. More precisely in this example i would like to check if there is "lion" right before "sleeps". Im using rfind() to search backwards but for some reason it starts the search from the beginning of the … | |
Alright this is my code, the error im getting is in red [CODE]<?php include("dbinfo.inc.php"); $tut_name = $_POST['tut_name']; $tut_link = $_POST['tut_link']; $tut_program = $_POST['tut_program']; $tut_category = $_POST['tut_category']; $tut_video = $_POST['tut_video']; $tut_download = $_POST['tut_download']; $tut_image = $_FILES['tut_image']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) … | |
i have two forms and on each form one text box having access database behind and is connected to forms by using data bound controls. My problm is that what ever value i enter form1.text1 , it should come in form2.text1. iam using code like this in form1 lost focus … | |
I have this C program which produces a .csv [comma separated variable] file, from an uploaded .txt file. The uploading part and writing the .csv file went fine, however, my problem is that the file can't be downloaded by the user. Can you tell me what's wrong missing with my … | |
I'm working on writing a small program that jumbles up a word an allows the user to move letters around in a string until the word us un-jumbled. For Example: If the given word is "movie" The program might jumble it to say "vmioe" In which case "v" would be … | |
I'm working on a project that is supposed to parse through a text file (about the length of a book or small dictionary) and print out the index. The program does not need to keep track of the frequency of the word. The data structure I'm using is a binary … | |
Hey I know i am over looking somthing small but can i get some help on line 23 [code](strcmp(chartryname, charname)==0 && (chartrypassword, charpassword) ==0){ [/code] I know this will not work its just to show what i am trying to do. I need to check two pairs of strings how … | |
I will start this thread with a problem that I am trying to solve. I have searched for a solution, and can't find one, and daniweb.com users have been a great help in the past. This is a tricky one for me.. I hope we can find a solution. All … | |
[code=cplusplus] /////////interface //appication.h #ifndef APPLICATION_MAIN_H #define APPLICATION_MAIN_H #include<string> using std::string; class appliance { protected: string Manufacturer; string Type; public: appliance(string a,string b); ~appliance(); void setManufacturer(string a); string getManufacturer(); void setType(string b); string getType(); void showDetails(); }; #endif [/code] [code=cplusplus] ///////implementation//////////////////// //appication.cpp #include<iostream> using std::cout; using std::cin; using std::endl; #include<string> using … | |
I'm having problem w/ this codes in bright red, when i'm trying to enter a name the first two letters are always not shown or when inside the inner looping, it don't show what the inner looping is containing. [code] #include <iostream> #include <iomanip> [COLOR="red"]#include <cstdio> // used for reading … | |
I have an assignment to do and i have a good portion of it already complete...The only thing i need is to validate that the number can only have one decimal point and the output of the number that has been validated is multiplied by two.....See the assignment question i … | |
mysql4.X is installed on my system.while i tried to install Phpbb forums in my personal computer it is giving the following error: Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\htdocs\phpBB2\db\mysql4.php on line 48 Warning: mysql_error(): supplied argument is not … | |
I have a page that allows you to add images to the server. As of course you are able to add them to the server you should be able to delete them. Now the problem I have is that. I cannot delete the folder if there are contents in it. … | |
Hi, after searching this forum adequately (I think) I have decided to post this thread asking for an easy to understand resource that describes how to do multithreading on C++ in windows. The current ones I am finding out there on the web either 1. Simply don't work or 2. … | |
I need help work wil not compile this is what I have to do. Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions (define these as constant variables): Federal Income Tax: 15% State Tax: 3.5% Social … | |
Whats am i doing wrong it is not compile Write a C++ program that creates customers’ bills for a carpet company when the following information is given: a.The length and the width of the carpet in feet. b.The carpet price per square foot. c.The percent of discount for each customer. … | |
What am I doing wrong with this one. I'm a beginner Write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half-dollars as possible, then quarters, dimes, nickels, and … | |
hey, been working on a program and I had a need for a password line (btw I am using linux w/ gcc compiler). while I was making it I checked the net and found there's no getch() for linux, so I frankensteined one from several sources and got it to … | |
Hey there folks. I am trying to write a program that will take in a paragraph file, and compare it against a "Dictionary" text file, which is being inserted into a Binary Search Tree. Here's what I've got so far: [code]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cctype> … | |
I'm trying to do something similar to this: [code] int output_type=1 if (output_type==1) char real_out[7]="binary"; else if (output_type==2) char real_out=[6]"octal"; else if (output_type==3) char real_out[8]="decimal"; else { char[20]real_out="This REALLY shouldn't have happened.\n";} } [/code] I know the coding is kinda messy but I basically want the variable "real_out" to contain … | |
I am trying to write a code for sending a mail in JAVA.. And I am getting the error [code] javax.mail.MessagingException: Could not connect to SMTP host: mail.yahoo.com, port: 25; [/code] What can my mistake possibly be..?? Please help me find my mistake.. | |
hello I'm new to c++ and I'm writing a program for a college project. I'm getting an error I don't understand, if someone can help me with it I'll be thankful Oh, and by the way, the functions names are in French, hope this wont be a problem. Here is … | |
hi all, i just want to know whether it is useful to alter the 50% threshold scheme that mysql uses by default ,is it beneficial in any way regarding serach(either by increasing or decreasing its value)or is it good to use default value of 50% only. which is better (altering … | |
hello frnds, I am a computer science student and i am very much interested in presenting a research paper in the field of computer networks.can u give some of the hot topics for the research.It will be greatly helpful if someone is ready to guide me in this process . … | |
Hi i'm getting an error CODE : ERROR: E2356 TEXTSORT.C "TYPE MISMATCH IN REDECLARATION OF 'SWAP' and i am exhausted trying to fix it...if you could help me please i would appreciate it. [code=c] void sort(char* string_array[], int length) { int i; int exchange_done; do { exchange_done = 0; for … | |
Hi I need urgent help doing this program (attached here) I must make it within hours, please help me Thanks | |
I have been following a C tutorial and using DevC++. When I write this code: [CODE]#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/CODE] and try to compile and run, I get this file popping up... [*] cstddef // Copyright (C) 1997, 1998, … | |
Is there any way to get rid of the "Press any key to continue" in the Dos window.:-/ I am using DevC++ ver. 4.9.8 It gets alittle annoying after awhile. And yes, I am new to programming. | |
I am relatively new to mysql. I am updating a site for a customer, and I'm using mysql 5 w/ phpMyAdmin. I was supplied an .sql (echeck.sql) script to build the database for this site. I create a database named "echeck" in phpMyAdmin, and once created go to the import … | |
How can i make a configuration in INI and XML so that i won't hardcode the location of my database and other configurations, and i would just change it from a form within my program? Can anyone help me? thanks.. | |
hi..i know this question sounds like stupid, but there is nobody that surrounding me i can ask. i had already found the other people program at [url]http://www.ucancode.net/Visual_C_MFC_Example/Create-2d-bar-line-pie-chart-vc-example.htm[/url] however, there are a few things that i am not sure about it. can someone help me to solve it? what is it … | |
Hello out there!! I am trying to search a string for the proper format of a date and time...... My date will simply be: ##/##/#### and my time will simply be ##:##A.M. or P.M. I am thinking I can use something like : [CODE=C++] size_type find_first_of(CharType ch, size_type indx = … | |
I'm using Borland Builder C++ 6 (my tutors force me to) and I want to make a TImage full screen. I don't think there's any specific function for this, the only way I can see doing it is possibly manipulating the Height and Width properties, but then again I can't … | |
hi hope you all ok. this block is in a for each statement. [CODE]TextBox tb = new TextBox(); tb.Text = rowData[key]; cell.Controls.Add(tb);[/CODE] I need these textboxes (which are created at runtime) to be required user entry fields. Bear in mind i know how to do this with asp.net, I am … | |
I realize that kprint takes a pointer as a parameter. I don't understand how it loops through each character when you do something like kprint("HELLO WORLD"); Can you really just increment *s to get to the next char like: s++; char c = *s; | |
hi all! Till now i have made simple applications in C# that dont make use of Database. But now i wanna make a simple projects that keep records of employee i.e. their name,ids,emails,addresses etc. For that purpose i need database connectivy code in C#. Another problem is this that i … | |
[code=c++] #include<iostream.h> #include<stdio.h> #include<io.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<string.h> void minmax(int); float max[13],min[13],array[13][270]; void main() { FILE *fp; char line[100]; char symptom[10]; float f; fp=fopen("input.txt","r"); int i=0,j=0,k,l=0; int rw_cnt = 0; int cl_cnt = 0; int len; while(!feof(fp)) { //i=0; //l=0; fgets(line,99,fp); printf("%s \n",line); // getch(); rw_cnt++; // len=strlen(line)+; // line[len]='\0'; … | |
Hi all On my jsp page i m having two tables.. first table have 14 rows which takes input type=text. and my second table is having 9 rows which also takes 9 inputs. Thus total 23 inputs on a form.. Now when the user click submit, i want to check … | |
[code=php] echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>"; [/code] Is this part properly coded [code=php] <a href='' . $link1 . '' style='color: red'> [/code] I tried like [code=php] <a href="' . $link1 . '" style='color: red'> [/code] but not working. Pls advise. | |
Vb 2005 problem Is there a way to search for identical items in a listbox en count them ? | |
hi, i am unable to read the newline using stream reader from a text file where it contains some names and their account ids. i need to copy each line to a string how can i change to next line. how can i know when end of file is reached??????? | |
Hi everyone, This is just a short description on the various classes & interfaces that help you write an application, which can parse an XML document. The SAX API consists of the foll. packages :- [I]org.xml.sax[/I] - This package contains the basic interfaces of the SAX API. Some of the … | |
haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz | |
I require to refer to a Variable through the use of a variable is this possible? Thankyou Regards, X | |
Hey, I've never done any programming in my life and would greatly appreciate some help :) I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays … | |
I want to write a code that will view all the records within a table and assign a checkbox for each record.. the check box will be used for deleting the records just like in emails. can anyone help me on this? | |
I'm experimenting with fgets because I heard it's better for dealing with memory buffer overflow but I am not sure of the [B]sizeof[/B] component and how to the [B]stdin[/B] part helps it to work. Is [B]METHOD 1[/B] or [B]METHOD 2[/B] in the following code the correct implementation of [B]sizeof [/B]and … | |
Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit … |
The End.