Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

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

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

1 Answer

0 votes
answered Jun 4, 2020 by Peter Minarik (86,040 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.
...