Test2

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Test2 as PDF for free.

More details

  • Words: 208
  • Pages: 4
C:\BORLANDC\BIN\TEST2.CPP

#include #include #include #include

23 ????? ??2550 21:48

"stdio.h" "conio.h" "stdlib.h" "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 ????? ??2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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-

Related Documents

Test2
May 2020 39
Test2
August 2019 67
Test2
May 2020 39
Test2
November 2019 44
Test2
August 2019 51
Test2
October 2019 56