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.
gjxqqp/last one优化界面.cpp

138 lines
2.4 KiB

#include <stdio.h>
#include<windows.h>
#include<iostream>
/*<2A><><EFBFBD><EFBFBD>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
void Yellow(){
{ 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 White()
{/*<2A><>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
/*<2A>޷<EFBFBD><DEB7><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><EFBFBD><E2A3AC>ascall<6C><6C>168<36><38>128<32>Լ<EFBFBD><D4BC>ո<EFBFBD><D5B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD><CCB8><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 Red(){
{ system("color c");
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 Blue(){
{ system("color 9");
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 Purple(){
{ system("color d");
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><EFBFBD><EFBFBD>ƾ<EFBFBD>goodbye*/
int main()
{
/*<2A><><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>ص<EFBFBD>״̬*/
bool quit=false;
int input;
/*ѭ<><D1AD>*/
while(!quit)
{
/*<2A><>ӡ<EFBFBD>˵<EFBFBD>*/
printf("***<2A><>ӭ<EFBFBD><D3AD><EFBFBD>ƹ<EFBFBD><C6B9><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\n 2.White\n 3.Blue\n 4.Red\n 5.Purple\n 6.Goodbye! Input 1-6:");
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C>޶<EFBFBD>1-6Ϊ<36>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>ַ<EFBFBD>*/
input=getchar()-0x30,getchar();
/*ѡ<><D1A1><EFBFBD><EFBFBD>֧*/
switch(input)
{
case 1:Yellow();quit=true;break;/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3>˳<EFBFBD>*/
case 2:White();quit=true;break;
case 3:Blue();quit=true;break;
case 4:Red();quit=true;break;
case 5:Purple();quit=true;break;
case 6:Goodbye();quit=true;break;
default:break;
}
}
}