diff --git a/last one.exe b/last one.exe new file mode 100644 index 0000000..8784535 Binary files /dev/null and b/last one.exe differ diff --git a/last one优化界面.cpp b/last one优化界面.cpp new file mode 100644 index 0000000..950be9d --- /dev/null +++ b/last one优化界面.cpp @@ -0,0 +1,137 @@ +#include +#include +#include +/*6*/ +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() +{/*ӡ*/ +/*޷ͼ⣬ascall168128Լո̸*/ + 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");} +/*ƾgoodbye*/ + +int main() +{ +/*˳ص״̬*/ +bool quit=false; +int input; +/*ѭ*/ +while(!quit) +{ +/*ӡ˵*/ +printf("***ӭƹ***\n"); +printf("ִҪɫ\n") ; +printf(" 1.Yellow\n 2.White\n 3.Blue\n 4.Red\n 5.Purple\n 6.Goodbye! Input 1-6:"); +/*,޶1-6ΪϷַ*/ +input=getchar()-0x30,getchar(); +/*ѡ֧*/ +switch(input) +{ +case 1:Yellow();quit=true;break;/*ɣ˳*/ +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; +} +} +} diff --git a/未命名5.exe b/未命名5.exe new file mode 100644 index 0000000..20b86a1 Binary files /dev/null and b/未命名5.exe differ