i have written the following program(s) at:
http://ranmasotome.50megs.com/cppProjects/
both programs use the file in.dat for output
both programs are essentailly the same
the goal is to populate an array with the contents of the input file and output the lines in reverse order to the output file
prep.cpp does not work
prepone.cpp does work
the program prep.cpp genereates out.dat
the program prepone.cpp generates outone.dat
what's more, when compiling and running prep.cpp, the -1100 in out.dat is always the same, but the -858993460 varies from computer to computer
any explanations as to why one works and the other doesn't would be appreciated