random words from text document
Hello. I was wondering how you would gererate a random word from a text document.
I have tryed this
cout<<startWord[rand() % 5];
It doesnt seem to be working though. Any advice?
Topic archived. No new replies allowed.