.

Wednesday, February 5, 2014

Turbo C

#include #include #include #include #include nigrify choice1, choice2; char a, b, c, d, e, f, g, h; //char *pa=&a, *pb=&b, *pc=&c, *pd=&d, *pe=&e, *pf=&f, *pg=&g, *ph=&h; a spoil grid(); void in frame up(); void flip(); //void cursor(); void compare(); void point(); //void cursor() //{ //int x=0, y=8; // coalescency REGS s,z; //s.h.ah=2; //s.h.bh=0; //s.h.dh=y; //s.h.dl=x; //int86(0x10,&s,&z); // compassch(); //input(); //getch(); //} void grid() { a=A; b=B; c=C; d=D; e=E; f=F; g=G; h=H; printf(%c%c%c%c, a,b,c,d); printf(%c%c%c%c, e,f,g,h); getch(); } void input() { int x=0, y=8; union REGS s,z; s.h.ah=2; s.h.bh=0; s.h.dh=y; s.h.dl=x; int86(0x10,&s,&z); printf( earn plectron: ); scanf(%c %c,&choice1, &choice2); gotoxy(15,9); getch(); clreol(); flip(); getch(); } void flip() { switch(choice1) { fount A: { gotoxy(33,5); printf(!); go oer; } baptistry B: { gotoxy(41,5); printf(@); gibe; } solecis m C: { gotoxy(49,5); printf(!); ascertain; } case D: { gotoxy(57,5); printf(#); put in; } case E: { gotoxy(33,7); printf($); tell apart; } case F: { gotoxy(41,7); printf(@); hand out; } case G: { gotoxy(49,7); printf($); break; } case H: { gotoxy(57,7); printf(#); break; } failure: { input(); //exit(0); //gotoxy(0,13); //printf( disenable INPUT!!!); //getch(); break; } } switch(choice2) { case A: { gotoxy(33,5); printf(!); break; } case B: { gotoxy(41,5); printf(@); break; } case C: { gotoxy(49,5); printf(!); break; } case D: { gotoxy(57,5); printf(#); break; } case E: { gotoxy(33,7); printf($); break; } case F: { gotoxy(41,7); printf(@); break; } case G: { gotoxy(49,7); printf($); break; } case H: { gotoxy(57,7); printf(#); break; } default: { input(); //exit(0); //gotoxy(0,13); //printf(INVALID INPUT!!!); //getch();...If you want to get a full essay, companionship it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment