How can I do a cycle for whit a char arrengment on (c++)? the user set up the name of the players | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I do a cycle for whit a char arrengment on (c++)? the user set up the name of the players

// I tried to make a casino game where the user put the name of the players and the bets, but when I tried to print the results of the dice, my code only show me the results of the last username, not the all players, how can I make the arrengment char whit the cycle for// when I put Cout<<"the dice of" <<name<<"are: "<<endl; srand(time(0)); for(C=0;C<3;C++){ E=1+rand()%(6-1); Dices() // on this void I have a switch for the figure of each die//

23rd May 2020, 6:34 AM
David Martinez
David Martinez - avatar
1 Answer
0
I tried to make a casino game where the user put the name of the players and the bets, but when I tried to print the results of the dice, my code only show me the results of the last username, not the all players, how can I make the arrengment char whit the cycle for
23rd May 2020, 2:33 PM
David Martinez
David Martinez - avatar