I am trying to implement a vector of a class that when certain inputs from the user are keyed in, elements are assigned via a member function while simultaneously "pushing back" or increasing the size of the vector of the object. This is my second course in c++ but still really a novice when it comes to classes and how to do certain things with them. I've searched the forum and reference sections and can't find anything that would help.
My current code compiles and runs but it iterates back to the "while" loop as I believe it exits the for loop but I can't quite figure out why. I'm sure the answer is simple but can't get my head around it.
To reiterate, I think my current problem is "pushing back" (increasing the size of the vector when I assign the object members user given values) the vector.