#include #include "console.c" char msg[100]="Google Chrome Yahoo Fire-Fox Safari Microsoft Apple Android "; void display_msg1(){ int i,j,n; n=strlen(msg); } void erase_msg1(){ int i,j,n; } void cctv(){ do{ display_msg1(); erase_msg1(); }while(!kbhit()); } void display_msg2(){ int i,c=40,n=strlen(msg),m; m = n/2; } void erase_msg2(){ int i,c=40,n=strlen(msg),m; m = n/2; } void ctr2LR(){ do{ display_msg2(); _sleep(500); erase_msg2(); _sleep(500); }while(!kbhit()); } void display_msg3(){ int i,c=40,n=strlen(msg),m; m = n/2; } void erase_msg3(){ int i,c=40,n=strlen(msg),m; m = n/2; } void LR2ctr(){ do{ display_msg3(); _sleep(500); erase_msg3(); _sleep(500); display_msg2(); _sleep(500); erase_msg2(); _sleep(500); }while(!kbhit()); } void display_msg4(){ char msg[]="Google Chrome Yahoo"; int i,j,c=40,n,m; n=strlen(msg); } void erase_msg4(){ char msg[]="Google Chrome Yahoo"; int i,j,c=40,n,m; n=strlen(msg); } void topdown(){ do{ display_msg4(); _sleep(500); erase_msg4(); _sleep(500); }while(!kbhit()); } void bouncing(int tail){ int x=0,y=0,i=1,j=1,mx=60,my=20,c=0; char ch='*'; srand(time(NULL)); x = rand()%mx; y = rand()%my; setrgb(c); } void display_msg5(){ char msg1[]="Google"; int i=0,j,mx=60,n,m; n=strlen(msg1); } void rotate(){ display_msg5(); } main(){ char opt; do{ clrscr(); setrgb(0); printf("(1) center to LR\n"); printf("(2) LR to center\n"); printf("(3) cctv\n"); printf("(4) top-down\n"); printf("(5) rotate\n"); printf("(8) bouncing\n"); printf("(9) bouncing with trail\n"); printf("option? "); opt = toupper(getche()); if(opt=='Q') break; switch (opt){ case '1': ctr2LR(); break; case '2': LR2ctr(); break; case '3': cctv(); break; case '4': topdown(); break; case '5': rotate(); break; case '8': bouncing(0); break; case '9': bouncing(1); break; } }while(1); }