could you please put code tags over all the code so its easier to read and debug... thanks

07-01-2005

major_small

first off,

Code:

cin>> input_file;
cin.read(input_file, 21);

what you probably want there is:

Code:

cin.getline(input_file,21);

second, when you hit sort(), what exactly are you trying to sort? and finally, when you hit your while loop, you check for eof on a stream you never opened.

I didn't check anything past that, but fix that and see where it gets you. one more thing: I see you've included <string>, but don't use any strings anywhere... I'm not so sure you'd need <cstdlib> either...