Hi
How do I read a list of names from a file- into an array of strings. Once I have the array - h ow do I use a random number generator to shuffle the order and pick 2 students at a time?
1
Expert's answer
2017-11-15T12:59:06-0500
As variant it can be done as follows std::string name; std::vector<std::string> stringArray; std::ifstream fin("somefile.txt", std::ios::read);
Comments
Dear MARK ANDREWS, You're welcome. We are glad to be helpful. If you liked our service please press like-button beside answer field. Thank you!
thanks
Leave a comment