How to clean screen in C ++ using Online GDB compiler?

0 votes
asked Jun 1 by Giancarlo Roman (120 points)

1 Answer

0 votes
answered Jun 4 by Peter Minarik (7,830 points)

I do not think it would work in the Online GBD compiler, but in your own environment, you can do system calls, so you can do

system("clear");

in your own code. It seems like system call is ignored on the online compiler (for good reasons).

Have a look here: https://www.tutorialspoint.com/how-can-i-clear-console-using-cplusplus

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.
...