So I'm given 2 tsv files StudentData.tsv and ClassData.tsv. In StudentData.tsv, it displays what classes the student took and their grade in that class. In ClassData.tsv, it displays all the courses in the school and the credit of that class and what type.
This is what I have so far, but I'm not sure how to make a loop that will open the ClassData.tsv and find the corresponding credit and type of that class. Right now the program just goes straight down the ClassData.tsv file and displays it. Also, I haven't learned how to use vectors, maps, arrays, etc and can't use getline either.
When you say you can't use this or that feature, do you mean it has been expressly forbidden, or simply that it is pushing at the limits of your knowledge. Are you able to use functions?
My suggestion would be to read the student data file one line at a time. (getline is a red herring, so long as you end up with all the data from a line of the file, how it is read is merely an implementation detail).
Then, for each of those students, look up the corresponding details from the ClassData file.
Now you could do this with nested loops. Personally I'd prefer to keep the structure of the code clear and simple by placing the details of the lookup in the other file into its own function. What would you put inside that function? For efficiency you could use a lookup in a previously stored table. But it would also be possible to read the ClassData file from the start each time.