实验报心得体会实验总结和心得体会(三篇).docx





《实验报心得体会实验总结和心得体会(三篇).docx》由会员分享,可在线阅读,更多相关《实验报心得体会实验总结和心得体会(三篇).docx(15页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 实验报心得体会实验总结和心得体会(三篇)对于试验报心得体会精选一 班号:0904101 学号:090410123 姓名:仲维祎 试验一vc+开发环境的熟识和c+根底学问试验 一、试验目的 1. 把握c+语言的特点。 2. 把握c+的各种数据类型及根本运算。 3. 把握c+各种掌握构造及使用技巧。 4. 把握c+的函数、数组、指针的相关概念和使用方法。 5. 敏捷运用c+相关根底学问进展综合程序设计。 6. 回忆面对过程程序设计方法。 7. 熟识visual c+的开发环境 8.把握用应用程序向导创立一个掌握台应用工程的方法。 9.把握源代码文件的新建、翻开、保存和关闭等根本操作。 10.把握
2、visual c+工程的编译、连接和执行。 11.把握代码简洁语法错误修正和调试的一般过程。 二、试验学问点概念 留意c+中同c的不同之处,包括数据类型,输入输出等相关的差异。 三、试验题目 1. 采纳插入排序法,输入10个整数按升序排序后输出。要求编写一个通用的插入排序函数,它带有三个参数,第一个参数是含有n个元素的数组,这n个元素已按升序排序;其次个参数给出当前数组中元素个数;第三个参数是要插入的整数。该函数的功能是将一个整数插入到数组中,然后进展排序。另外还需要一个用于输出数组元素的函数,要求每一行输出5个元素。 2. 有5个学生,每个学生的数据构造包括学号、姓名、年龄、c+成绩,数学成
3、绩和英语成绩、总平均分,从键盘输入5个学生的学号、姓名、3门课的成绩,计算3门课的总平均分,最终将5个学生的数据输出。要求各个功能用函数实现。 3. 对程序参加断点简洁调试。 四、程序思路 五、程序源代码 1:代码如下 #include using namespace std; void (char iarray,int ncount,int nnumber) int i=ncount-1,j=0; char *iarray2; iarray2=iarray; *(iarray2+ncount)=nnumber;/多安排一个空间给传入数据 for(i;i=0;i-) if(ncount=1)
4、*iarray=nnumber; if (*(iarray2+i)*(iarray+i+1) j=*(iarray2+i); iarray2i=iarray2i+1; iarray2i+1=j; cout“the array is “; for(i=0;incount;i+) coutai“ “; int main char a80=0,i,sarray=0; for(i=0;i10;i+) cout“please type into numbers“endl; cinai; if (ai=999999ai=0) (a,sarray+1,ai); sarray+; return 1; 2:代码
5、如下: #include using namespace std; class infstud public: int id; char name20; int age; int cpp; int math; int eng; void print; int all; ; int infstud:all int all; all=math+cpp+eng; return all; ; void infstud:print cout“the id is “ “id“ “ “the name is“ “name“ “ “the age is “ “age“ “ “the cpp is“ “cpp“
6、 “ “the eng is“ “eng“ “ “the math is“ “math“ “ “the all is“ “all“ “ “the avg is“ “all/3endl; ; void main infstud student5; int i=0,j; for(i;i=4;i+) cout“type the id name age c+ eng math in“studenti.idstudenti.namestudenti.agestudenti.cppstudenti.engstudenti.math; 对于试验报心得体会精选二 1.1 试验目的 把握c程序设计编程环境vis
7、ual c+,把握运行一个c程序的根本步骤,包括编辑、编译、链接和运行。( 1.2 试验要求 在报告中记录建立、保存c程序实习过程。 1.3 试验根本内容 编写程序,在屏幕上显示一个短句“hello world” (1) 程序: 1) 编译如下程序: #include void main() printf (“hello world!”); 2)链接。执行build-命令。 3)运行。执行build execute 命令。显示结果。 4)关闭程序工作区。 (2) 运行结果: 输出结果:hello world! 总结: 把握c语言程序设计的根本框架,能够编写简洁的程序。 2.1 试验目的 (1)
8、 把握c语言的运算符和表达式的正确使用以及c语言的几种根本数据类型和根本输入输出函数的使用方法。() (2)通过编程进一步理解和把握运算符确实切含义和功能。 2.2 试验要求 (1) 在报告中记录建立、保存c程序实习过程。 (2) 完成典型题目,分析遇到的困难和试验中的收获。 2.3 试验根本内容 输入程序,观看输出结果 1./*test2.1c*/ 1)编译如下程序: #includevoid main() char ch; int k; ch=”a”,k=”b”; printf(“%d,%x,%c“,ch,ch,ch,ch,k); printf(“k=%d“,k) 2)链接。执行build
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 实验 心得体会 总结

限制150内