Write a program to Clear the screen without clrscr()
![/* Author: Timus Rak Date:15-07-2014 */ #include<stdio.h> #include<conio.h> void clrthescreen(); void main() { int op; printf("Press any key to clear the screen.\n"); getch(); clrthescreen(); printf("This appears after clearing the screen.\n"); printf("Press any key to exit...\n"); getch(); } void clrthescreen() { system("cls"); //system("clear"); Use only for LINUX } /* Author: Timus Rak Date:15-07-2014 */ #include<stdio.h> #include<conio.h> void clrthescreen(); void main() { int op; printf("Press any key to clear the screen.\n"); getch(); clrthescreen(); printf("This appears after clearing the screen.\n"); printf("Press any key to exit...\n"); getch(); } void clrthescreen() { system("cls"); //system("clear"); Use only for LINUX }](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2NIyLBARkIP5SvoC0p4KSduAtlw9kQS4VqYl-qrNFNenuCfq4XAq301mjhyzW2eYKcGJnoszGOZO2zqkxC8bsK8XVB4U_d9HFnws0o-oAZp-OmO70d6fEYFeHQaPuD-mU7xLUvNQcDIOF/s1600/c.png)
/*
Author: Timus Rak
Date:15-07-2014
*/
#include <stdio.h>
#include <conio.h>
void clrthescreen();
void main()
{
int op;
printf("Press any key to clear the screen.\n");
getch();
clrthescreen();
printf("This appears after clearing the screen.\n");
printf("Press any key to exit...\n");
getch();
}
void clrthescreen()
{
system("cls");
//system("clear"); Use only for LINUX
}
Comments
Post a Comment