
Choose Your Desired Option(s)
Code C++ game Caro màn hình console

void veBanCo(){
int i,j;
gotoXY(LEFT+1,TOP); //TOP
for (i=0;i<(2*SIZE);i++)
if (i%2) printf(“%c“,194); else printf(“%c%c%c“,196,196,196);
gotoXY(LEFT+1,BOT); //BOT
for (i=0;i<2*SIZE;i++)
if (i%2) printf(“%c“,193); else printf(“%c%c%c“,196,196,196);
for (i=0;i<2*SIZE;i++){
gotoXY(LEFT,TOP+i);
if (i%2) printf(“%c“,179); else printf(“%c“,195);
gotoXY(RIGHT,TOP+i);
if (i%2) printf(“%c“,179); else printf(“%c“,180);
}
char S0[200], S1[200];
for (int j=0;j<4*SIZE-1;j++)
if (j%4==0) S0[j]=179; else S0[j]=‘ ‘;
for (int j=0;j<4*SIZE-1;j++)
if ((j+1)%4==0) S1[j]=197; else S1[j]=196;
S1[4*SIZE-1]=‘\0‘; S0[4*SIZE-1]=‘\0‘;
i=1;
while (i<2*SIZE-1){
gotoXY(LEFT,TOP+i++); printf(“%s“,S0);
gotoXY(LEFT+1,TOP+i++); printf(“%s“,S1);
}
gotoXY(LEFT,TOP+i); printf(“%s“,S0);
gotoXY(LEFT,TOP); printf(“%c“,218);
gotoXY(RIGHT,TOP); printf(“%c“,191);
gotoXY(LEFT,BOT); printf(“%c“,192);
gotoXY(RIGHT,BOT); printf(“%c“,217);
}
| Download Category | C & C++ |
| Product Homepage URL→ | |
| Product Version | |
| File Type | CPP |
| File Size | 3 KB |
| Developer | |
| Documentation |





