You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.2 KiB

6 years ago
#include <stdio.h>
#include<windows.h>
#include<iostream>
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
void White(){
{ system("color e");
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
if((i+j)%2==0)
{
printf("%c%c",168,128);
}
else
{
printf(" ");
}
}
printf("\n");
}
}
}
void Yellow()
{/*<2A><>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
/*<2A>ò<EFBFBD><C3B2><EFBFBD>ͼ<EFBFBD><EFBFBD><E2A3AC>ascall<6C><6C>168<36><38>128<32>Լ<EFBFBD><D4BC>ո<EFBFBD><D5B8><EFBFBD><EFBFBD><EFBFBD>*/
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
if((i+j)%2==0)
{
printf("%c%c",168,128);
}
else
{
printf(" ");
}
}
printf("\n");
}
}
void Goodbye(){printf("Goodbye!\n");}
/*<2A><><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>*/
int main()
{
/*<2A><><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>ص<EFBFBD>״̬*/
bool quit=false;
int input;
/*ѭ<><D1AD>*/
while(!quit)
{
/*<2A><>ӡ<EFBFBD>˵<EFBFBD>*/
printf("<EFBFBD><EFBFBD>ӭ<EFBFBD><EFBFBD><EFBFBD>ƹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ\n") ;
printf("1.Yellow 2.White 3.Goodbye! Input 1-3:");
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
input=getchar()-0x30,getchar();
/*ѡ<><D1A1><EFBFBD><EFBFBD>֧*/
switch(input)
{
case 1:White();quit=true;break;
case 2:Yellow();quit=true;break;
case 3:Goodbye();quit=true;break;
default:break;
}
}
}