- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
c语言实习报告(学生成绩管理,解密,大字符)[精品]
c语言实习报告(学生成绩管理,解密,大字符)
附一
计算机上机实习
实 习 报
班 级
学 号
姓 名
指导教师
完成日期
1
主函数体
#includequot;stdio.hquot; #include lt;conio.hgt; #includelt;windows.hgt; #includelt;string.hgt; #include lt;math.hgt; #includelt;stdlib.hgt; #define SIZE 36 struct student_type { int num; char name[10]; char sex[3]; char posi[10]; int yy; int sx; int wl; int zt; int cs; int ys; float ave; int pm; }stu[SIZE];
struct student_type1 { int num; char name[10]; int yy; int sx; int wl; int zt; int cs; char ys[2]; }stud1[SIZE]; struct student_type2 { int num; char name[10]; char sex[3]; int age; char posi[10]; }stud2[SIZE]; struct student_type3 { int num; char cour[10];
建立结构数组 2
float score;
}stud3[5];
int section1(); 声明函数
int section2();
int section3();
void function1_1();
void function1_2();
void function1_3();
void function1_4();
void function1_5();
void function1_6();
void function1_7();
void function2_1();
void function3_1();
void main() /*主菜单*/
{ char ch1;
do{ system(quot;CLSquot;); /*清屏*/
printf(quot;\n\n\n\n\n\n\n\n\nquot;); printf(quot; ************** C语言程序设计上机实习 ****************\nquot;);
printf(quot; ---------------------------------------------------\n\nquot;);
printf(quot; 1 学生成绩管理\n\nquot;);
printf(quot; 2 破译密码\n\nquot;);
printf(quot; 3 组成大字符\n\nquot;);
printf(quot; 4 退 出\n\nquot;); printf(quot; 输入选择序号\nquot;);
while( (ch1=getchar(), ch1!=‘1’amp;amp; ch1!=‘2’ amp;amp;ch1!=‘3’amp;amp;ch1!=‘4’ )) ;
switch(ch1)
{case ‘1’ : section1(); break;
case ‘2’ : section2(); break;
case ‘3’ : section3(); break;
case ‘4’ : exit(0); }
}while(1);
}
int section1() /*第1个2级菜单*/
{ char ch21;
do{ system(quot;CLSquot;);
printf(quot;\n\n\n\n\n\n\n\n\n\nquot;);
print
文档评论(0)