|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<windows.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
void welcome();
|
|
|
|
|
int color(int c)
|
|
|
|
|
{
|
|
|
|
|
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),c);//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
/*****<2A><>ȡ<EFBFBD><C8A1>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>*******/
|
|
|
|
|
static void gotoxy(int x, int y){
|
|
|
|
|
COORD point = { x, y };//<2F><><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>õ<EFBFBD>λ<EFBFBD><CEBB>x,y
|
|
|
|
|
HANDLE HOutput = GetStdHandle(STD_OUTPUT_HANDLE);//ʹ<><CAB9>GetStdHandle(STD_OUTPUT_HANDLE)<29><><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><C4BE><EFBFBD>
|
|
|
|
|
SetConsoleCursorPosition(HOutput, point);//<2F><><EFBFBD>ù<EFBFBD><C3B9><EFBFBD>λ<EFBFBD><CEBB>
|
|
|
|
|
}
|
|
|
|
|
//<2F><><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void title()
|
|
|
|
|
{
|
|
|
|
|
color(14);
|
|
|
|
|
gotoxy(30,7);
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ӭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
color(5);
|
|
|
|
|
gotoxy(36,8);
|
|
|
|
|
printf("<EFBFBD>Թ<EFBFBD><EFBFBD><EFBFBD>Ϸ");
|
|
|
|
|
}
|
|
|
|
|
void ajsm()
|
|
|
|
|
{
|
|
|
|
|
int n;
|
|
|
|
|
color(8);
|
|
|
|
|
gotoxy(30,9);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD>̡<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
gotoxy(30,10);
|
|
|
|
|
printf("<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD>˳<EFBFBD>:[ ](<28><><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD>)\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
switch(n)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
system("cls");
|
|
|
|
|
welcome();
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void yxgz()
|
|
|
|
|
{
|
|
|
|
|
int n;
|
|
|
|
|
color(2);
|
|
|
|
|
gotoxy(30,9);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><EFBFBD>ɣ<EFBFBD>");
|
|
|
|
|
gotoxy(30,10);
|
|
|
|
|
printf("<EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD>˳<EFBFBD>:[ ](<28><><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD>)\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
switch(n)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
system("cls");
|
|
|
|
|
welcome();
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
exit(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void welcome()
|
|
|
|
|
{
|
|
|
|
|
title();
|
|
|
|
|
int i,j=1;
|
|
|
|
|
color(9);
|
|
|
|
|
for(i=9;i<=20;i++){
|
|
|
|
|
for(j=15;j<=60;j++){
|
|
|
|
|
gotoxy(j,i);
|
|
|
|
|
if(i==9||i==20) printf("=");
|
|
|
|
|
else if(j==15||j==59) printf("::");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
int n;
|
|
|
|
|
color(12);
|
|
|
|
|
gotoxy(25,12);
|
|
|
|
|
printf("1.<2E><>ʼ<EFBFBD><CABC>Ϸ");
|
|
|
|
|
gotoxy(40,12);
|
|
|
|
|
printf("2.<2E><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>");
|
|
|
|
|
gotoxy(25,17);
|
|
|
|
|
printf("3.<2E><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>");
|
|
|
|
|
gotoxy(40,17);
|
|
|
|
|
printf("4.<2E>˳<EFBFBD>");
|
|
|
|
|
gotoxy(21,22);
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>[1,2,3,4]:[ ](<28><><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD>)\b\b\b\b\b\b\b\b\b\b\b\b\b\b");
|
|
|
|
|
scanf("%d",&n);
|
|
|
|
|
switch(n)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
system("cls");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
system("cls");
|
|
|
|
|
ajsm();
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
system("cls");
|
|
|
|
|
yxgz();
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
exit(0);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
int main(void)
|
|
|
|
|
{
|
|
|
|
|
welcome();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|