Page 1 of 1

thread closed. problem solved. thanks KFSPC8.

Posted: Sun Dec 19, 2010 3:06 pm
by happy125
i tried to google for clearscreen but none of them seem to work. i tried clrscr(), system("CLS"),fflush(stdout) but none seem to work. im using GNU GCC complier

i have included these:

Code: Select all

#include<iostream>
#include<conio.h>
#include<cstdlib>

Re: [help]C++ clearscreen

Posted: Sun Dec 19, 2010 9:02 pm
by KFSPC8
try including

#include <windows.h>
system("cls");

Re: [help]C++ clearscreen

Posted: Sun Dec 19, 2010 11:16 pm
by happy125
i got it working already. its system("cls"); instead of system("CLS");. thanks.