2013-09-27, 07:41 AM
Two possibilities I see: one is that the second input file is somehow corrupted and nothing gets read (program outputs 0 numbers) or that the output file is being buffered and because you never close() it explicitely it doesn't get written to disc.
To see what's going on, add debug messages, like:
To see what's going on, add debug messages, like:
Code:
ReadValue(inF, num, success);
cout << "read number " << num << endl;
WriteValue(inF, num);
cout << "wrote number " << num << endl;
