![]() |
|
#1
|
|||
|
|||
help with arguments to mainCPP / C++ / C Code:
that is part of my code... and when i run the program, i get a "failed to open construction file", and when i replace the cFileName in cfile.open to "constFile.txt", i get an infinite loop elsewhere in the code. but the problem must be in this section, because the program worked perfect before... with ifstream cfile("constFile.txt"); and then i added the argument stuff, and ive been getting all kinds of errors. so yeah... please can you guys look at the code above, and tell me if you see any errors. thanks!!! |
|||
|
#2
|
|||
|
|||
|
Quote:
Here's a suggestion: When a program "works perfect before..." but doesn't work so good with the new stuff, break out the new stuff into a separate program and test it to see if you understand what's happening: CPP / C++ / C Code:
Once you get this under your cap, then you can put this loop at the beginning the main() of your big program to make sure it's getting the stuff you think. Regards, Dave |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Who Calls main and where does main returns (C/C++) | Poolan | C Programming Language | 5 | 27-Oct-2004 10:00 |
| main() arguments | crystalattice | C Programming Language | 2 | 24-Oct-2004 00:05 |
| Another problem dealing with main() and driver function | tommy69 | C Programming Language | 4 | 20-Mar-2004 19:46 |
| regarding main method | jerry | C++ Forum | 18 | 09-Mar-2004 18:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The