Professional Documents
Culture Documents
#Include "Stdio.h" #Include "Conio.h" #Include "Stdlib.h" #Include "Dos.h"
#Include "Stdio.h" #Include "Conio.h" #Include "Stdlib.h" #Include "Dos.h"
#Include "Stdio.h" #Include "Conio.h" #Include "Stdlib.h" #Include "Dos.h"
2550 21:48
#include "stdio.h"
#include "conio.h"
#include "stdlib.h"
#include "dos.h"
void main()
{
int i=12,j,x=35,y=20,c,m;
int i0;
int rs[][11][8] = {{0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0},//0
{0,0,0,0,0,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,1,0,0,0,
0,0,1,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,0,1,1,0,0,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0},//1
{0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,1,1,0,0,0,0,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,0,0,0},//2
{0,0,0,0,0,0,0,0,
0,0,1,1,1,1,0,0,
0,1,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,0,0,1,1,1,0,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,1,0,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0},//3
-1-
C:\BORLANDC\BIN\TEST2.CPP 23 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1,1,1,1,0,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,1,1,0,0,1,1,0,
0,0,1,1,1,1,1,0,
0,0,0,0,0,1,1,0,
0,0,0,0,0,1,1,0,
0,1,0,0,0,1,1,0,
0,0,1,1,1,1,0,0,
0,0,0,0,0,0,0,0},//9
{0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0}};//CLR
clrscr();
randomize();
do{
i0=random(10);
for(int i1=0;i1<=11;i1++)
{
gotoxy(x+1,y);
for(int i2=0;i2<=8;i2++)
{
if (rs[i0][i1][i2] == 1)
rs[i0][i1][i2] = 65;
}
printf("%c",rs[i0][i1][i2]);
-3-
C:\BORLANDC\BIN\TEST2.CPP 23 ????? ??2550 21:48
y++;
delay(500);
y=y-12;
if(kbhit()) c=getch();
}while(c != 27);
ed:
gotoxy(12,49);
printf("Press any key to exit : Prototype by Reroyd (Jakkraphan)");
getch();
-4-