Clear Screen without clrscr() function call
#include<stdio.h>
void clearmyscreen();
void main()
{
printf("Hello");
getch();
clearmyscreen();
printf("World");
getch();
}
void clearmyscreen()
{
system("cls");
}
#include<stdio.h>
void clearmyscreen();
void main()
{
printf("Hello");
getch();
clearmyscreen();
printf("World");
getch();
}
void clearmyscreen()
{
system("cls");
}
Output
World
Comments
Post a Comment