System PAUSE and CLS

–1 vote
asked Aug 1 by FX Airell Valerio SW (110 points)
How can we use system("pause") and system("cls") in here?

1 Answer

0 votes
answered Aug 5 by Peter Minarik (7,160 points)
Both pause and cls are Windows commands.

OnlineGDB is running on a linux machine, hence the Windows commands do not work there.

"clear" is the equivalent in linux of "cls" in Windows, however, it does not work in here. It works in your own PC though if you're running linux.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...