I need some people with VC++ and some people with other compilers to run the following program to see if it works. Here is the input data(the number of 5's and 6's after each name is unimportant):
The program is supposed to pick out the first 5 char's from each line and output them, so the output should be:
I have VC++6.0 and the code won't work. It outputs:
If anyone can run this and tell me the results and their compiler, or tell me why it won't work for me, I would appreciate it. You need to substitute the path of your input file for the one in the program
using namespace std;
//substitute your file's path in the following line.
//displays where the get pointer in the input
//file is pointing. I get tellg()=-1 which doesn't make sense