I posted about this in another help thread a week or so ago but it was only a quick side note. Now its really starting to bother me. I am creating a program in which the user any amount of names and school results in. Iím pretty much done. Except that I am unsure about how to refer the names. Since I canít say to begin with how many names there are going to be so I canít print x amount of elements.
-Iím using vectors
-user defines no of elements in the vectors
-how do I print the elements(refer to them individually, so that its flexible enough)
Iím not sure if I can just use the size and say print the element which is the size-(size-1) to refer to the first element and just increase the size of 1 as I go. Then once I get to a blank element just print some kinda of end message. If I could do something like that how would I do it.
Thank you for the help.