+ 3

System("pause")

In this app System ("pause") is not working :( can you help me? Sorry for my English, but i'm from POLAND :D

8th Feb 2018, 9:58 AM
B.A.R.0.N.
B.A.R.0.N. - avatar
2 Réponses
+ 10
SoloLearn does not provide a live console for console apps, i.e. You cannot pause the execution. It's also not considered a good practice, since system() based commands are OS dependent. https://stackoverflow.com/questions/1107705/systempause-why-is-it-wrong
8th Feb 2018, 10:05 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
I usually pause like this: string str; getline(cin, str); Waits for ENTER to be pressed, still won’t work here though.
8th Feb 2018, 12:27 PM
Jacob Pembleton
Jacob Pembleton - avatar