How to Clean up the Screen in C/C++
To clean up your C/C++ screen you can use system("cls"). It is very understandable that some compilers does not support cls/CLS and clrscr()
/* | Author : Alim Ul Karim |
|------------------------------------------|
| Code tested on CodeBlocks , GCC Compiler |
| Example of cls or clean up screen |
|------------------------------------------|
*/
#include <stdio.h>
int main(){
printf("Before system(cls)\n");
system("cls");
printf("after system(cls)\n");
}
|
Author Alim Ul Karim's Related Links:
- Google Alim Ul Karim
- Visit Alim Ul Karim's Portfolio