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.

105 lines
2.2 KiB

6 years ago
#include<stdio.h>
#include<windows.h>
void welcome(); //<2F><>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD>
void add(); //<2F><><EFBFBD><EFBFBD>
void delete(); //ɾ<><C9BE>
void idfind(); //ѧ<>Ų<EFBFBD>ѯ
void namefind(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
void ranking(); //<2F><><EFBFBD><EFBFBD>
int n;
struct
{
long int id; //ѧ<><D1A7>
char name[20]; //<2F><><EFBFBD><EFBFBD>
double cj; //C<><43><EFBFBD>Գɼ<D4B3>
} student[200];
/*
*<EFBFBD><EFBFBD>ӭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
void welcom()
{
system("color e0"); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB>ǰΪ<C7B0><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ<EFBFBD><C9AB><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɫ
printf("-------<2D><>-ӭ-<2D><>-<2D><>-ѧ-<2D><>-<2D><>-<2D><>-<2D><>-¼-<2D><>---------\n");
printf("| |\n");
printf("| 1.<2E><><EFBFBD><EFBFBD> |\n");
printf("| |\n");
printf("| 2.ɾ<><C9BE> |\n");
printf("| |\n");
printf("| 3.ѧ<>Ų<EFBFBD>ѯ |\n");
printf("| |\n");
printf("| 4.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ |\n");
printf("| |\n");
printf("| 5.<2E>ɼ<EFBFBD><C9BC><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><C6BD><EFBFBD><EFBFBD> |\n");
printf("| |\n");
printf("| 6.д<><D0B4><EFBFBD>ı<EFBFBD><C4B1>ļ<EFBFBD> |\n");
printf("| |\n");
printf("| 7.<2E><>ȡ<EFBFBD>ı<EFBFBD><C4B1>ļ<EFBFBD> |\n");
printf("| |\n");
printf("| 0.<2E>˳<EFBFBD> |\n");
printf("| |\n");
printf("| ѡ<><D1A1><EFBFBD><EFBFBD>1 2 3 4 5 6 7 0<><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ķ<EFBFBD><C4B7><EFBFBD> |\n");
printf("| |\n");
}
/*
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
void add()
{
int x; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD>
int i; //<2F><><EFBFBD><EFBFBD>
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
scanf("%d",&x);
for(i=0;i<x;i++)
{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>ѧ<EFBFBD><EFBFBD>:");
scanf("%ld",student[i].id);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",student[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>Գɼ<EFBFBD><EFBFBD><EFBFBD>");
scanf("%ld",student[i].cj);
}
}
/*
*ɾ<EFBFBD><EFBFBD>
*/
void delete()
{
}
/*
*ѧ<EFBFBD>Ų<EFBFBD>ѯ
*/
void idfind()
{
}
/*
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ
*/
void namefind()
{
}
/*
*<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
void ranking()
{
}
int main()
{
welcom();
}