===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<dos.h>
#include<process.h>
#include<stdio.h>
#include<stdlib.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;
int i=1;
while(i==1)
{
x++;
if(x==134)
{x=0;y+=24;i=2;}
Print(x,y);
if(kbhit())
if(getch()==27)
exit(0);
delay(50);
}
}
void Fill_String()
{
int i,j,k,I,J;
randomize();
char STR[10][240],A[5][240];
sprintf(STR[0]," ");
sprintf(STR[1]," HELLO FRIENDS PLEASE SHARE!! ");
sprintf(STR[2]," ");
sprintf(STR[3],"1 2 3 4 5 6 7 8 9 10 11 12 13 ");
sprintf(STR[4]," ");
sprintf(STR[5],"14 15 16 17 18 19 20 21 22 23 ");
sprintf(STR[6]," ");
sprintf(STR[7],"24 25 26 27 28 29 30 31 32 33 ");
sprintf(STR[8]," ");
sprintf(STR[9],"34 35 36 37 38 39 40 41 42 43 ");
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>
#include<stdlib.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;
int i=1;
while(i==1)
{
x++;
if(x==134)
{x=0;y+=24;i=2;}
Print(x,y);
if(kbhit())
if(getch()==27)
exit(0);
delay(50);
}
}
void Fill_String()
{
int i,j,k,I,J;
randomize();
char STR[10][240],A[5][240];
sprintf(STR[0]," ");
sprintf(STR[1]," HELLO FRIENDS PLEASE SHARE!! ");
sprintf(STR[2]," ");
sprintf(STR[3],"1 2 3 4 5 6 7 8 9 10 11 12 13 ");
sprintf(STR[4]," ");
sprintf(STR[5],"14 15 16 17 18 19 20 21 22 23 ");
sprintf(STR[6]," ");
sprintf(STR[7],"24 25 26 27 28 29 30 31 32 33 ");
sprintf(STR[8]," ");
sprintf(STR[9],"34 35 36 37 38 39 40 41 42 43 ");
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(" ");
}
}
===========================================================================
No comments:
Post a Comment