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



}


















Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C