samedi 8 août 2020

How to get user input, store it as vector, then output a random vector element? [closed]

I want to get input from the user and store it in a vector then output a random element.

I used push_back to push elements in a vector but I am having trouble getting a random element.

Whatever I used is for numbers but I want strings.




Aucun commentaire:

Enregistrer un commentaire