Loop keeps repeating itself in a weird order

Moved on
Last edited on
Things like

int x;
cin >> x;

do not consume carriage returns, but you want them to.
Topic archived. No new replies allowed.