If I wanted to have a user enter his name, enter forty-two more names after, and then have the names print in a random order on the screen, how would I do this?
A vector to store all the names (as std::strings). Loop 42 times to get user input to add to the vector. Then rearrange the vector randomly (you could do this but picking 2 random numbers between 0-41 and swapping the strings at those positions and doing that a whole bunch. I also believe there is a shuffle() function in <algorithm>...). Then just loop through the vector and print the strings.