I'm working on a Yatzee game, and I'm currently stuck trying to take in which dice the user wants to re-roll.
cout << "How many dice would you like to re-roll?" << endl;
cin >> r;
cout << "Which dice would you like to re-roll? (ex. 1,4,5..)" << endl;
cin >> rerolls;
Obviously that doesn't work, otherwise I wouldn't be posting
. But I guess I know how I could make a for loop saying: for(i=0; i> rerolls[i];}; But as simple as that would be, I'm interested in figuring out different ways to do things, such as taking all the numbers in at once.
If anyone can provide assistance, I would greatly appreciate it! Thank you..