15,300 Posted Topics

Member Avatar for adnan.siddique

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.

Member Avatar for Ancient Dragon
0
153
Member Avatar for mosespascal

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++.

Member Avatar for Ancient Dragon
-1
61
Member Avatar for ppotter3

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 …

Member Avatar for ppotter3
0
204
Member Avatar for qtdinesh

Deposit $1,000.00 USD in my PayPal account and I'll give you the program in about six months.

Member Avatar for Ancient Dragon
-4
178
Member Avatar for Gaiety

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.

Member Avatar for Ancient Dragon
0
75
Member Avatar for Conqueror07

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.

Member Avatar for Ancient Dragon
-4
270
Member Avatar for faaz

>>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 …

Member Avatar for dusktreader
0
2K
Member Avatar for Frederick2

[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 …

Member Avatar for Frederick2
0
160
Member Avatar for dps
Member Avatar for abhimanipal

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]

Member Avatar for Ancient Dragon
0
105
Member Avatar for ilyaz

>>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 …

Member Avatar for Ancient Dragon
0
200
Member Avatar for Campbell1510
Member Avatar for infrapt

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.

Member Avatar for Ancient Dragon
0
56
Member Avatar for cerr

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 …

Member Avatar for cerr
0
152
Member Avatar for fuggles
Member Avatar for Salem
0
87
Member Avatar for Monster Killer
Member Avatar for Monster Killer
0
100
Member Avatar for vidyabhat

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.

Member Avatar for Narue
-2
72
Member Avatar for shaider6192

>>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.

Member Avatar for shaider6192
0
137
Member Avatar for sknake

WTF?? When did Discussion Groups forum start? And why isn't there a link to it anywhere?

Member Avatar for Geekitygeek
0
350
Member Avatar for zero_crack87

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.

Member Avatar for Nick Evan
-4
106
Member Avatar for asa88

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.

Member Avatar for asa88
0
138
Member Avatar for Smokepole

>>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)

Member Avatar for Ancient Dragon
0
108
Member Avatar for Dimitar

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 …

Member Avatar for Dimitar
0
85
Member Avatar for akvino

For starters, read [URL="http://www.daniweb.com/forums/thread254874.html"]this recent thread.[/URL]

Member Avatar for Ancient Dragon
0
124
Member Avatar for atticusr5

I thought VI was just a *nix text editor. Didn't know it was a compiler too.

Member Avatar for Ancient Dragon
0
155
Member Avatar for blueman:-0

[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 …

Member Avatar for Ancient Dragon
-1
55
Member Avatar for Excizted

[URL="http://bytes.com/topic/c/answers/492660-stl-map-vs-vector"]This thread[/URL] seems to be a good discussion of that topic.

Member Avatar for Excizted
0
134
Member Avatar for kriszy0515

[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.

Member Avatar for hag++
-3
74
Member Avatar for jefanot

How to put keys into the keyboard buffer depends on the operating system.

Member Avatar for Ancient Dragon
0
614
Member Avatar for sailee

[QUOTE=sailee;592273]Pls help me in finding hcf and lcm of 2 nos[/QUOTE] What the hell does that mean :angry:

Member Avatar for hk<3ob1993
0
195
Member Avatar for jrkeller27
Member Avatar for sidra 100

I'm only 39 years old ([URL="http://www.museum.tv/eotvsection.php?entrycode=bennyjack"]see Jack Benny[/URL]) with 30 years more experience.

Member Avatar for zortec
0
142
Member Avatar for cmsc

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.

Member Avatar for cmsc
0
181
Member Avatar for th3kingdom1

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 …

Member Avatar for th3kingdom1
0
169
Member Avatar for Yellowdog428

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.

Member Avatar for Yellowdog428
0
162
Member Avatar for Learning78

[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 …

Member Avatar for mitrmkar
0
159
Member Avatar for Suicidal_tool

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; …

Member Avatar for Suicidal_tool
0
110
Member Avatar for studentffm

Are those your DLLs? Or do you have the source code so that you can recompile them with debug information?

Member Avatar for Ancient Dragon
0
262
Member Avatar for vaultdweller123

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]

Member Avatar for ankush.mukherje
0
158
Member Avatar for kokoromidori
Member Avatar for Ancient Dragon
-2
97
Member Avatar for kde
Member Avatar for schoolboy2010

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]

Member Avatar for schoolboy2010
0
106
Member Avatar for Lukezzz

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.

Member Avatar for jonsca
0
114
Member Avatar for PetuniaRose

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 …

Member Avatar for Ene Uran
0
969
Member Avatar for Iamthedude

Get it as a string, then parse the string to find out what kind of data it contains. [edit]Oops! Too late. Like ^^^ said.

Member Avatar for Iamthedude
0
119
Member Avatar for freeseif
Member Avatar for Ancient Dragon
2
2K
Member Avatar for kamran_yusuf

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]

Member Avatar for Ancient Dragon
0
92
Member Avatar for shahrooz63
Member Avatar for haseeb1431

The loop is wrong. eof() is unnecessary and its causing the problem. [code] while( inf >> class) { } [/code]

Member Avatar for vmanes
0
153
Member Avatar for trevorthecat

The problem is how it is displaying the data. Line 23 prints the array before it has been sorted.

Member Avatar for WaltP
0
130

The End.