- #1
anonim
- 40
- 2
- Homework Statement
- -
- Relevant Equations
- -
Code:
if(count%2==0){ //for user 1
cout<<"User 1"<<endl;
cout << "Please enter your move: ";
cin.ignore();
getline(cin,str);
//do something
}
else if (count%2!=0){ //for user 2
cout<<"User 2"<<endl;
cout << "Please enter your move: ";
cin.ignore();
getline(cin,str);
//do something
}