资源描述:
《高级语言程序设计 课程设计报告》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、辽宁科技大学课程设计说明书设计题目:学生成绩管理系统电话号码本管理系统学院、系:电子与信息工程学院专业班级:学生姓名:指导教师:成绩:2012年7月11日29目录一、面向过程部分设计1.小程序设计·············································3(1)面向过程第一题数组·····································3(2)面向过程第二题数组·····································4(3)面向过程第三题函数················
2、·····················6(4)面向过程第四题数组·····································7(5)面向过程第五题字符串···································8(6)面向过程第六题字符串···································92.小系统设计学生成绩管理系统···························1029二、面向对象部分设计1.小程序设计(1)面向对象第一题类与对象·························
3、·······15(2)面向对象第二题类与对象································17(3)面向对象第三题继承与派生······························19(4)面向对象第四题虚函数与多态····························20(5)面向对象第五题文件····································202.小系统设计电话号码本管理系统·························21三、总结·························
4、························28报告内容29一、面向过程部分1、小程序(1)数组1)程序功能与要求:一数组中已存放了10个有序的整数,现由键盘输入一个整数,将此数插入到该数组中,使数组仍然是有序的。2)界面设计及实现:#includevoidmain(){inta[11]={1,2,3,4,5,6,7,8,9,10};intx,m,k=0;cout<<"请输入一个数:";cin>>x;if(x>a[9])a[10]=x;else{for(;k<10;k++){if(a[k]>x)break;}f
5、or(m=9;m>=k;m--)a[m+1]=a[m];a[k]=x;}for(inti=0;i<11;i++)cout<voidmain(){constintMax_a=20;inta[Max_a],evena[Max_a];inti,n,j,sum=0;cout<<"请输入20个整数:";for(i=0;i>a[i];fo
6、r(i=0,n=0;iintss(intnumber){intt1;for
7、(inti=2;ivoidmain(){intscore[10]={90,70,
8、80,90,75,85,95,76,86,94,};intsum=0,i;doubleaverage;for(i=0;i<10;i++)sum=sum+score[i];average=sum