jeudi 23 février 2017

C++ Pause Method Incrementing Required Enter Presses

I have made a pause function.

void pause () {

    cout << endl << " Hit [ENTER] To Continue: ";

    cin.get();
    cin.ignore();


    system ("cls");

}

The Issue is: When they follow one after the other, they end up adding the need to hit enter by one each time.

Any advice? Other than not using them side by side of course...

Aucun commentaire:

Enregistrer un commentaire