So what I need help with is writing a program that reads an input file, data.txt, stores the information in a two dimensional vector and then outputs the vector to an outfile, vector_data.txt.
The Data File Looks like this:
4 88 84 94 93
2 83 100
4 70 67 65 74
3 58 60 51
First Number( Number of tests ), Rest of the numbers are test scores.
My logic is to read the first number, use that number to fill the vector with the number of tests a student will have. I am not experienced with Vectors at all! Any help would be greatly appreciated. For some reason, when I use the command inFile >> numScores the first line of the datafile is completely skipped, when I output the variable, it's showing 2( which is the second line ). Here's what I have so far: