文件名称:test1
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2013-05-23
- 文件大小:
- 24kb
- 下载次数:
- 0次
- 提 供 者:
- lixu*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
⒈ 从键盘输入一个字符序列,编程统计其中的数字个数和英文字母个数,输入的字符序列以“#”作为结束符。
⒉ 编写一段程序,当用户输入一个6位数据时,程序可以将其分离为单独的数字,分离结果之间用3个空格分开。(应用求模运算符和整型除法)
答案:实验一(2)
⒊ 采用指针方法将一个数组中的所有元素颠倒顺序,结果仍然放在原来的数组中,要求使用最少的辅助存储单元。
⒋ 使用结构变量表示每个学生的信息:姓名、学号、三门课的成绩和平均成绩。编写一个冒泡排序函数,根据学生的平均成绩排序。从键盘上输入10个学生的数据,在主函数中调用排序函数输出每个学生的姓名和三门课的成绩以及平均成绩。
⒌ 编写一段程序,确定员工的工资总额。每位员工在一周内工作40小时以内,是按正规工作时间付酬,超出40小时,是正规工作时间报酬的1.5倍。假定已经有了公司员工的花名册、每位员工在上个星期的工作时间以及每位员工的小时报酬。在程序中应将每位员工的信息输入,计算显示员工的应得工资。(练习使用嵌套的if/else语句和switch语句)-⒈ a sequence of characters entered from the keyboard, programming, statistics on the number of digits and letters number, enter the sequence of characters with "#" as the terminator.
⒉ write a program, when a user enters a 6 data, the program can be separated into single digits, separated by three spaces between the results separately. (Application modulo operator and integer division)
Answer: experiment (2)
⒊ method using the pointer array, all elements in a reverse order, the result is still in the original array, requires the use of a minimum of the auxiliary storage unit.
⒋ use structured variables to represent each student s information: name, student number, three course grades and grade point average. Write a bubble sort function, according to the student s grade point average sort. Input from the keyboard 10 student data, the main function calls the sort function output each student s name and three course results and grade point average.
⒌ write a program to determine the
⒉ 编写一段程序,当用户输入一个6位数据时,程序可以将其分离为单独的数字,分离结果之间用3个空格分开。(应用求模运算符和整型除法)
答案:实验一(2)
⒊ 采用指针方法将一个数组中的所有元素颠倒顺序,结果仍然放在原来的数组中,要求使用最少的辅助存储单元。
⒋ 使用结构变量表示每个学生的信息:姓名、学号、三门课的成绩和平均成绩。编写一个冒泡排序函数,根据学生的平均成绩排序。从键盘上输入10个学生的数据,在主函数中调用排序函数输出每个学生的姓名和三门课的成绩以及平均成绩。
⒌ 编写一段程序,确定员工的工资总额。每位员工在一周内工作40小时以内,是按正规工作时间付酬,超出40小时,是正规工作时间报酬的1.5倍。假定已经有了公司员工的花名册、每位员工在上个星期的工作时间以及每位员工的小时报酬。在程序中应将每位员工的信息输入,计算显示员工的应得工资。(练习使用嵌套的if/else语句和switch语句)-⒈ a sequence of characters entered from the keyboard, programming, statistics on the number of digits and letters number, enter the sequence of characters with "#" as the terminator.
⒉ write a program, when a user enters a 6 data, the program can be separated into single digits, separated by three spaces between the results separately. (Application modulo operator and integer division)
Answer: experiment (2)
⒊ method using the pointer array, all elements in a reverse order, the result is still in the original array, requires the use of a minimum of the auxiliary storage unit.
⒋ use structured variables to represent each student s information: name, student number, three course grades and grade point average. Write a bubble sort function, according to the student s grade point average sort. Input from the keyboard 10 student data, the main function calls the sort function output each student s name and three course results and grade point average.
⒌ write a program to determine the
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验一\1\test1_1.cpp
......\.\test1_1.dsp
......\.\test1_1.dsw
......\.\test1_1.ncb
......\.\test1_1.opt
......\.\test1_1.plg
......\2\test1_2.cpp
......\.\test1_2.dsp
......\.\test1_2.dsw
......\.\test1_2.ncb
......\.\test1_2.opt
......\.\test1_2.plg
......\3\test1_3.cpp
......\.\test1_3.dsp
......\.\test1_3.dsw
......\.\test1_3.ncb
......\.\test1_3.opt
......\.\test1_3.plg
......\4\test1_4.cpp
......\.\test1_4.dsp
......\.\test1_4.dsw
......\.\test1_4.ncb
......\.\test1_4.opt
......\.\test1_4.plg
......\5\test1_5.cpp
......\.\test1_5.dsp
......\.\test1_5.dsw
......\.\test1_5.ncb
......\.\test1_5.opt
......\.\test1_5.plg
......\1
......\2
......\3
......\4
......\5
实验一