How to make the window pause [Not a question] | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How to make the window pause [Not a question]

By this I mean to make the window to wait for the enter/return key. Simply on the line before "return 0;" type "system("pause");"

24th Feb 2017, 12:13 AM
PortillTech
PortillTech - avatar
1 Antwort
+ 2
you could use cin.get(); and this would wait for a user input.
24th Feb 2017, 3:52 AM
Michael Szczepanski
Michael Szczepanski - avatar