Subscribe to Continue Downloading

Redirecting...
Code C game Caro màn hình console - Code C++ game Caro màn hình console

Code C++ game Caro màn hình console

by Hùng Dũng Nguyễnin on October 14, 2021

Choose Your Desired Option(s)

Code C++ game Caro màn hình console

Code C game Caro màn hình console - 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
Product Version
File Type CPP
File Size 3 KB
Developer
Documentation

Release Information

  • Released
    :

    October 14, 2021

  • Last Updated
    :

    October 14, 2021

  • Categories
    :
  • File Included
    :

    CPP

  • File Size
    :

    3 KB

Share Your Valuable Opinions

You must log in to submit a review.

  • Sign up
Password Strength Very Weak
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
We do not share your personal details with anyone.

Please wait a moment...

(Don't refresh or go back)