function to clear screen in c++ code example Example: clear screen in c++ enter code here void clrscr() { system("cls"); }