I am using c++ on Qt creator. I look for a command to clean screen.
I tried system("CLS") and system("clear")
but it did not work
I try
#include <curses.h>
clear();
refresh();
I got this error:
Undefined symbols for architecture x86_64:
"_clear", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)