15,300 Posted Topics
Re: You can not do it with the Express version because it does not support MFC. Other versions have a wizzard that does it for you. | |
Re: LOL! Why don't you just ask someone step-by-step instructions to build a house. I believe most people just use google search engine -- that's what DaniWeb uses anyway. I have no idea how it is implemented, but I'm pretty sure it is not in c++. | |
Re: Two main problems: 1) WriteOutput() is destroying the value of result_NameONE and result_NameTWO. Delete those two lines at the beginning of that function because they are set in the Search function. 2) SearchNames() -- the last two parameters must be passed by reference. That function is also much more complicated … | |
Re: Deposit $1,000.00 USD in my PayPal account and I'll give you the program in about six months. | |
Re: line 5 takes up less memory than line 3. In line 3 each of the strings are allocated 10 bytes of memory, while in line 5 there is no memory reserved for the strings at all in the array. | |
Re: 1) provide the full path to the desired destination file 2) system() function, or CreateProcess() win32 api function. There are a few other ways too. | |
Re: >>while(x!=-999); Remove the semicolon at the end of that line. Next, when there are multiple statements in a loop the loop must be enclosed in { and } brackets [code] while(x!=-999) { // blabla } [/code] Also, you will need to initialize all those variables to -0 so that they … | |
Re: [quote]64-bit memory addressing enables applications to store large data sets entirely in memory. This eliminates the performance penalty associated with swapping portions of the data in and out to disk[/quote] Yea, that's great ... until the lights go out unexpectently :) But that wouldn't matter if the database is read-only … | |
Re: I haven't the slightest idea what you are talking about. | |
Re: Statements are always evaluated from left to right unless parentheses change the order of evaluation. Add parentheses to do what you are thinking [icode] (j = j || i++) && printf("YOU CAN");[/icode] | |
Re: >>I don't want to create a new project and start copying files, if this is possible to avoid. What kind of project is it now, and what kind of project do you want to change it to? What I might do is create a new project of the type you … | |
![]() | |
Re: that is not a character array. Do you mean like this: [icode]char* array[] = {"2.3","5.5","8.9"};[/icode] Then just use atof() for each string. | |
Re: void main() must be int main(). Why are you using C's fgets() instead of c++ getline() ? Does't make sense to use those C functions in a C++ program. Example: delete stdio.h, string.h and conio.h from your program as they are not needed. [code] void contact :: enter() { cout<<"Enter … | |
Re: [URL="http://libusb-win32.sourceforge.net/"]Here is a library[/URL] | |
Re: Did you try thing: [icode]this->panel1->Visible = false;[/icode] | |
Re: call [URL="http://linux.die.net/man/2/fstat"] fstat([/URL]) or [URL="http://msdn.microsoft.com/en-us/library/221w8e43%28VS.71%29.aspx"]_fstat[/URL]() depending on os and compiler. | |
Re: >>Im still new to TC.. In that case uninstall it from your computer because you can't learn C or C++ from it. Instead, get one of the free compilers available for download, such as VC++ 2008 Express or Code::Blocks with MinGW. | |
Re: WTF?? When did Discussion Groups forum start? And why isn't there a link to it anywhere? | |
Re: You don't want that ancient compiler that is nearly as old as I am :) Get VC++ 2008 Express because its free and currently easily available for download at Microsoft. Just google for it. | |
Re: Ignore the first warning about incremental linking -- I get that sometimes too and means nothing. The second problem, just go to the bottom of the source code file and hit the Enter key so that there is a blank line at the bottom of the program. | |
Re: >>You would need to make it the default for it to open when you click on a link in another application. And just in case you don't know how to do that -- Click Start --> Default Programs (assuming you have not customized the Start menu items) | |
Re: First step is to just write a program that asks you to enter a value, then use cin to get the value from the keyboard. Once you have that going (compiled without error and runs correctly) you can add the other stuff to it, whic to write a function that … | |
Re: For starters, read [URL="http://www.daniweb.com/forums/thread254874.html"]this recent thread.[/URL] | |
Re: I thought VI was just a *nix text editor. Didn't know it was a compiler too. | |
Re: [QUOTE=blueman:-0;1112611]how i can do database in c++[/QUOTE] Depends on the kind of database you want to use. It could be as simple as a text file or as complex as interfacing with an SQL-compiliant database, such as MySQL and MS Access. You need to be more specific about what you … | |
Re: [URL="http://bytes.com/topic/c/answers/492660-stl-map-vs-vector"]This thread[/URL] seems to be a good discussion of that topic. | |
Re: [QUOTE=kriszy0515;1112500]hello??? can you give me a complete program about a fraction calculator???[/QUOTE] No, use your brain and code it yourself. That's a lot more fun than plagiarism. | |
Re: How to put keys into the keyboard buffer depends on the operating system. | |
Re: [QUOTE=sailee;592273]Pls help me in finding hcf and lcm of 2 nos[/QUOTE] What the hell does that mean :angry: | |
Re: where have you looked? Did you try google? | |
Re: I'm only 39 years old ([URL="http://www.museum.tv/eotvsection.php?entrycode=bennyjack"]see Jack Benny[/URL]) with 30 years more experience. | |
Re: You can't just simply swap nodes (see lines 24-31 of the code you posted) of a linked list because all the pointers will be destroyed (invalidated). A better way to swap nodes is to swap the data, leaving all the pointers in the node structure unchanged. | |
Re: The last column in that file is a string which also must be read [code] int i = 0; string stuff; while( infile >> oldcases[i][0]) { for(int j = 1; j < 6; j++) infile >> oldCases[i][j]; infile >> stuff; // read the strings at the end of each line … | |
Re: maybe you want [icode]npc.erase(iter);[/icode] When you do that I have found that you need to start the loop all over again because the value of iter is invalidated. | |
Re: [QUOTE=Learning78;1111585]I was looking forward to find some help in this regard from the expert guys but I think it's difficult to get an idea here.[/QUOTE] The answer to the second question is "Yes" -- but there's a catch. YOU have to code your program to do that because there's nothing … | |
Re: just as you did with structure menber [icode]int ident[/icode] you have to create an object of type NPC_det [code] struct NPC { string name; int ident; struct NPC_det { int health; int attack; int def; } det;//end 2nd struct }//end 1st struct int main() { NPC n; n.det.health = 1; … | |
Re: Are those your DLLs? Or do you have the source code so that you can recompile them with debug information? | |
Re: This is one interpretation: [quote]"Don't worry about the world coming to an end today. It's already tomorrow in Australia." Charles Schultz, creator of the Peanuts comic strip. 4[/quote] | |
| |
Re: The easiest way to read the numbers into an array is like this: [code] float gradeData[12] = {0.0F}; int i; // loop counter ifstream myfile ("rainfall.txt"); if( myfile.is_open() ) { i = 0; while( i < 12 && myfile >> gradeData[i] ) i++; } [/code] | |
Re: Don't know if there is a managed code to do it or not, [URL="http://msdn.microsoft.com/en-us/library/ms649014%28VS.85%29.aspx"]but here is how to do it[/URL] with normal win32 api functions. | |
Re: Presidents have to be leaders -- what would you think if President Obama stayed in the Oval Office and did nothing all day unless the will of the people or the Constitution demanded it? I'll tell you what would happen -- he would be considered a do-nothing President who is … | |
![]() | Re: Get it as a string, then parse the string to find out what kind of data it contains. [edit]Oops! Too late. Like ^^^ said. ![]() |
Re: [URL="http://msdn.microsoft.com/en-us/library/c37dh6kf%28VS.80%29.aspx"]fgetws()[/URL] | |
Re: delete lines 18 and 33 -- they serve no purpose. For leap years, [URL="http://www.go4expert.com/forums/showthread.php?t=2099"]read this thread[/URL] | |
Re: [URL="http://lmgtfy.com/?q=driver+for+Roland+cm+12+plotte"]Maybe this will help[/URL] | |
Re: The loop is wrong. eof() is unnecessary and its causing the problem. [code] while( inf >> class) { } [/code] | |
Re: The problem is how it is displaying the data. Line 23 prints the array before it has been sorted. |
The End.