First I would like to say this is a homework assignment. I am by no means asking for help with it directly. I am getting weird output on the vector inside the structure and I am curious as to why. Everything else stores and prints just fine. I have had 2 instructors not figure it out so far and for 3 days I've been lost. Any help is appreciated, thank you. The problem is when the students vector prints out the students it acts as if it is printing the previous elements with the next element to be printed. The output should just list things about the class and the names of the students in the class. What happens with what I have is that it prints the first set of names entered multiple times then at some point it prints the second set and the first set. When those are done the last set finally prints 1 time. Im lost
I was thinking that cls could be used as a temporary place holder before dumping the structure into say element 0 then the next iteration of the loop would overwrite what was stored in that object and then it would be dumped into element 1 and so on.
Edit: also on line 117 that was a mistake, it was originally 0 but when I used 1 the results looked a little better but it set the rest off of course by 1. it was just all weird
I should have tried the .clear before posting to be honest. I thought about it but never tried to implement it, after the instructors couldn't figure it out I guess I was just plain ready to turn to the community. Both of the options do work, now to see which I want to use. And of course my \t's in the formatting of the output im working on right now just do not want to work with me. stupid cmd window!!