求助 学生成绩系统
#include <stdio.h>#include <conio.h>
#include <string.h>
#include <stdlib.h>
long Search(char s[]);
struct student_type
{ char num[11];
char name[11];
char classid[11];
float score[7];
float total;
}studentl;
main()
{int i=0;
char c,ch1[10]={"123456"},ch2[]={0,0,0,0,0,0,0,0,0,0,0,0};
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\t\t____________________________________\n");
printf("\t\t| |\n");
printf("\t\t|请输入密码,按【Enter】键结束:|\n");
printf("\t\t| |\n");
printf("\t\t____________________________________\n");
while((c=getch())&&c!=13)
{putchar('*');
ch2[i++]=c;
}
if(!strcmp(ch1,ch2))
printf("\n密码输入正确\n");
else
printf("\n密码输入不正确\n");
system("color 4");
{ char cho;
while(1)
{
system("cls");
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\n");
printf("\t======================学生成绩管理系统=======================\n");
printf("\t 1.学生成绩录入 2.学生成绩修改 \n");
printf("\t 3.学生成绩删除 4.学生成绩浏览 \n");
printf("\t 5.学生成绩查询 6.学生成绩统计 \n");
printf("\t 7.学生成绩单打印 8.退出 \n");
printf("\t=============================================================\n");
printf("请选择功能(1~8):");
printf("\n");
system("title 学生成绩管理系统");
system("color F1");
system("pause");
while(1)
{
cho=getch();
if(cho>='1'&& cho<='8')break;
}
switch(cho)
{
case'1':Add();break;
case'2':Revise();break;
case'3':Delete();break;
case'4':Display();break;
case'5':LookFor();break;
case'6':Ccount();break;
case'7':Print();break;
case'8':
{printf("你确定要退出系统吗(Y/N)?");
cho=getch();
if(cho=='y'||cho=='Y')exit(0);
}
}
}
}
找不出来错在哪了。
感谢大神