Help cin dosent work

closed account (23h0pfjN)
cout << "You can use your small map /map." << endl;
Sleep(2500);
cout << "pries what would you like to do now?" << endl;
cin >> getDes;
cout << "What would you like to do now?" << endl;
cin >> getDes;
while(1){
cout << "pradioj loopo" << endl;
cin >> getDes;
cout << "Your selection: ";
cin >> getDes;
if(getDes=="/map"){
map(0,0);
break;
}
if(getDes=="/con"){
break;
}
}
MovementOut(0, 0, 10);

whenever i try to run it it prints you can use your small map, and then starts spamming where will you go now?:. Please help me. This is not the full code btw, tell me if you need the full.
Put cin.clear() or cin.sync() before your cin statement
This will clear the cin buffer. Which is my guess where the error is
closed account (23h0pfjN)
Thx it worked (:
Topic archived. No new replies allowed.