![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
ok i got my i/o stream program running and almost done...after lots of reading i realized i was going about the problem wrong so i started again from scratch.. i have the 2 lists of numbers merging into 1 output file just fine. i just cant seem to grasp how to sort the SOBs out. again i will c&p my code here but this time its actually worth looking at :-D
CPP / C++ / C Code:
Last edited by LuciWiz : 09-Mar-2005 at 23:38.
Reason: Please insert your C code between [c] & [/c] tags
|
|||
|
#2
|
|||
|
|||
|
why dont you try reading fin and fin2 into an array or vector then sort the vector and merge that into the output file. well thats what i would try and do
|
|
#3
|
||||
|
||||
|
First, check out this information. feof() and fin.eof() work the same
Second, use code tags Third, don't start new threads on the same topic. Forth, it helps to explain the problem. What is the program not doing? I think I see the problem but without a description, I can't be sure. It looks like the comparison in CPP / C++ / C Code:
CPP / C++ / C Code:
__________________
The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The