Well, by the looks of it studentID is a vector.
So what exactly do you think this means fileout << studentID
If you want to output a vector, just like arrays, you're gonna have to use a for-loop and output each element of the vector.
What kind of object is studentID? The compiler does not know what to do with that kind of object in this situation.
Last edited on