===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<process.h>
#include<stdio.h>
char str[75][240];
void Fill_String();
void Print(int x,int y);
void Background_Clear();
void main()
{
textbackground(1);
clrscr();
char a;
int x,y;
Background_Clear();
Fill_String();
x=0;
y=0;
while(1==1)
{
Print(x,y);
a=getch();
if(a=='d' || a=='D')
{
if(x<134)
x++;
}
else if(a=='w' || a=='W')
{
if(y>0)
y--;
}
else if(a=='a' || a=='A')
{
if(x>0)
x--;
}
else if(a=='s' || a=='S')
{
if(y<50)
y++;
}
else if(a==27)
exit(0);
}
}
void Fill_String()
{
int i,j,k,I,J;
char STR[10][240],A[5][240];
sprintf(STR[0],"HI FRIENDS HOW ARE YOU ? ");
sprintf(STR[1],"PLEASE SHARE MY BLOG ");
sprintf(STR[2],"HOPE YOU LIKE IT! ");
sprintf(STR[3],"SUNIL CLASSES ");
sprintf(STR[4],"----- ------- ");
sprintf(STR[5],"MOKSH BHATEJA ");
sprintf(STR[6]," PAYTM: 8700074498 ");
sprintf(STR[7]," GOOGLE= SUNIL CLSSES ");
sprintf(STR[8]," THANK YOU! ");
for(i=0,I=3;i<=9;i++,I+=8)
{
for(k=0;k<=2;k++)
for(j=0;j<=239;j++)
str[I-3+k][j]=' ';
for(j=0,J=0;j<=30;j++,J+=7)
{
sprintf(A[0],"%s",str[I+0]);
sprintf(A[1],"%s",str[I+1]);
sprintf(A[2],"%s",str[I+2]);
sprintf(A[3],"%s",str[I+3]);
sprintf(A[4],"%s",str[I+4]);
switch(STR[i][j])
{
case 65:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 97:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 66:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 98:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 67:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 99:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 68:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 100:
sprintf(str[I+0],"%s Û",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 69:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 101:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 70:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case 102:
sprintf(str[I+0],"%s ÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 71:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 103:
sprintf(str[I+0],"%s ÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 72:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 104:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 73:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 105:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ",A[4]);
break;
case 74:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 106:
sprintf(str[I+0],"%s Û",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 75:
sprintf(str[I+0],"%s Û ÛÛ",A[0]);
sprintf(str[I+1],"%s Û ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ÛÛ",A[4]);
break;
case 107:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û Û ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û Û ",A[4]);
break;
case 76:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 108:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 77:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s ÛÛ ÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 109:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s Û Û Û",A[4]);
break;
case 78:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s ÛÛ Û",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 110:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 79:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 111:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 80:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 112:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛ ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 81:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ Û",A[4]);
break;
case 113:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛ",A[4]);
break;
case 82:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s Û ÛÛ",A[4]);
break;
case 114:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û ÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 83:
sprintf(str[I+0],"%s ÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 115:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 84:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 116:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ",A[4]);
break;
case 85:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 117:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 86:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛ ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 118:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛ ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 87:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ ÛÛ",A[4]);
break;
case 119:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ ÛÛ",A[4]);
break;
case 88:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 120:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛ ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 89:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 121:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 90:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 122:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 48:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 49:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 50:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 51:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 52:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s Û",A[4]);
break;
case 53:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 54:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 55:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case 56:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 57:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case ' ':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case 33:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case '=':
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case '-':
sprintf(str[I+0],"%s ÛÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case ':':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case '.':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case '+':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case '?':
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s o ",A[4]);
break;
case '#':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
default:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
}
}
}
}
void Print(int x,int y)
{
int i,j;
for(i=2;i<=79;i++)
{
for(j=2;j<=24;j++)
{
gotoxy(i,j);
cprintf("%c",str[y+j-2][x+i-2]);
}
}
}
void Background_Clear()
{
int i,j;
textbackground(0);
for(i=2;i<=79;i++)
for(j=2;j<=24;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<process.h>
#include<stdio.h>
char str[75][240];
void Fill_String();
void Print(int x,int y);
void Background_Clear();
void main()
{
textbackground(1);
clrscr();
char a;
int x,y;
Background_Clear();
Fill_String();
x=0;
y=0;
while(1==1)
{
Print(x,y);
a=getch();
if(a=='d' || a=='D')
{
if(x<134)
x++;
}
else if(a=='w' || a=='W')
{
if(y>0)
y--;
}
else if(a=='a' || a=='A')
{
if(x>0)
x--;
}
else if(a=='s' || a=='S')
{
if(y<50)
y++;
}
else if(a==27)
exit(0);
}
}
void Fill_String()
{
int i,j,k,I,J;
char STR[10][240],A[5][240];
sprintf(STR[0],"HI FRIENDS HOW ARE YOU ? ");
sprintf(STR[1],"PLEASE SHARE MY BLOG ");
sprintf(STR[2],"HOPE YOU LIKE IT! ");
sprintf(STR[3],"SUNIL CLASSES ");
sprintf(STR[4],"----- ------- ");
sprintf(STR[5],"MOKSH BHATEJA ");
sprintf(STR[6]," PAYTM: 8700074498 ");
sprintf(STR[7]," GOOGLE= SUNIL CLSSES ");
sprintf(STR[8]," THANK YOU! ");
for(i=0,I=3;i<=9;i++,I+=8)
{
for(k=0;k<=2;k++)
for(j=0;j<=239;j++)
str[I-3+k][j]=' ';
for(j=0,J=0;j<=30;j++,J+=7)
{
sprintf(A[0],"%s",str[I+0]);
sprintf(A[1],"%s",str[I+1]);
sprintf(A[2],"%s",str[I+2]);
sprintf(A[3],"%s",str[I+3]);
sprintf(A[4],"%s",str[I+4]);
switch(STR[i][j])
{
case 65:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 97:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 66:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 98:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 67:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 99:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 68:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 100:
sprintf(str[I+0],"%s Û",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 69:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 101:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 70:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case 102:
sprintf(str[I+0],"%s ÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 71:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 103:
sprintf(str[I+0],"%s ÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 72:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 104:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 73:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 105:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ",A[4]);
break;
case 74:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 106:
sprintf(str[I+0],"%s Û",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 75:
sprintf(str[I+0],"%s Û ÛÛ",A[0]);
sprintf(str[I+1],"%s Û ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ÛÛ",A[4]);
break;
case 107:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û Û ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û Û ",A[4]);
break;
case 76:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 108:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 77:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s ÛÛ ÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 109:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s Û Û Û",A[4]);
break;
case 78:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s ÛÛ Û",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 110:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ÛÛ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 79:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 111:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 80:
sprintf(str[I+0],"%s ÛÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 112:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛ ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 81:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ Û",A[4]);
break;
case 113:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛ",A[4]);
break;
case 82:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s Û ÛÛ",A[4]);
break;
case 114:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û ÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 83:
sprintf(str[I+0],"%s ÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛ ",A[4]);
break;
case 115:
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 84:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 116:
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ",A[4]);
break;
case 85:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 117:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 86:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛ ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 118:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛ ÛÛ",A[3]);
sprintf(str[I+4],"%s ÛÛÛ ",A[4]);
break;
case 87:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ ÛÛ",A[4]);
break;
case 119:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛ ÛÛ",A[4]);
break;
case 88:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 120:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s ÛÛÛ ",A[3]);
sprintf(str[I+4],"%s Û Û",A[4]);
break;
case 89:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case 121:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 90:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 122:
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛÛÛÛ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 48:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û Û",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 49:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 50:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 51:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 52:
sprintf(str[I+0],"%s Û Û",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s Û",A[4]);
break;
case 53:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 54:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 55:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ÛÛ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case 56:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case 57:
sprintf(str[I+0],"%s ÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û",A[3]);
sprintf(str[I+4],"%s ÛÛÛÛÛ",A[4]);
break;
case ' ':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case 33:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛ ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case '=':
sprintf(str[I+0],"%s Û ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s Û ",A[4]);
break;
case '-':
sprintf(str[I+0],"%s ÛÛÛÛÛÛ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case ':':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ÛÛ ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ÛÛ ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case '.':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
case '+':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛÛ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
case '?':
sprintf(str[I+0],"%s ÛÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û",A[1]);
sprintf(str[I+2],"%s Û ",A[2]);
sprintf(str[I+3],"%s Û ",A[3]);
sprintf(str[I+4],"%s o ",A[4]);
break;
case '#':
sprintf(str[I+0],"%s ",A[0]);
sprintf(str[I+1],"%s ",A[1]);
sprintf(str[I+2],"%s ",A[2]);
sprintf(str[I+3],"%s ",A[3]);
sprintf(str[I+4],"%s ",A[4]);
break;
default:
sprintf(str[I+0],"%s ÛÛ ",A[0]);
sprintf(str[I+1],"%s Û Û ",A[1]);
sprintf(str[I+2],"%s ÛÛÛÛ ",A[2]);
sprintf(str[I+3],"%s Û Û ",A[3]);
sprintf(str[I+4],"%s ÛÛ ",A[4]);
break;
}
}
}
}
void Print(int x,int y)
{
int i,j;
for(i=2;i<=79;i++)
{
for(j=2;j<=24;j++)
{
gotoxy(i,j);
cprintf("%c",str[y+j-2][x+i-2]);
}
}
}
void Background_Clear()
{
int i,j;
textbackground(0);
for(i=2;i<=79;i++)
for(j=2;j<=24;j++)
{
gotoxy(i,j);
cprintf(" ");
}
}
===========================================================================
OUTPUT
"IN THIS PROGRAM I've EXTENDED MY SCREEN AND YOU CAN SCROLL IT BOTH HORIZONTALLY AND VERTICALLY"
PLEASE CLICK HERE FOR OUTPUT VIDEO
No comments:
Post a Comment