How can I clean my screen?

I've created an application in C++ (I didn't think was necessary to post the code) and at a moment I had to clean my screen. I knew the function clrscr() from the header conio.h but my IDE (Code::Blocks with MinGW) doesn't recognize it (he give me en error where it says that the function wasn't declarated).

Does anybody know a function that can clean my screen?

Thanks.
closed account (Gz64jE8b)
Most people use system("CLS"); but a lot of people will tell you that's the wrong way to do it, you can just use cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
write(1,"\E[H\E[2J",7);
That should do the job.
Thanks a lot friends! Nice forum, by the way! I am glad to be part of it!
Topic archived. No new replies allowed.