文件名称:main
-
所属分类:
- 标签属性:
- 上传时间:2012-11-07
-
文件大小:1013byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1、从键盘输入一批数值,要求保留3位小数,在输出是上下行小数点对齐。
2、编程序实现以下功能:
(1)按职工号由小到大的顺序将5个员工的数据(包括号码、姓名、年龄、工资)输出到磁盘文件中保存;
(2)从键盘输入两个员工的数据(职工号大于已有的职工号),增加到文件的末尾;
(3)输出文件中全部职工的数据;
(4)从键盘输入一个号码,从文件中查找有无此职工号,如有则显示此职工的全部信息。如没有,就输出“无此人”。。
-1, from the keyboard a number of values to retain three decimal places, decimal point in the output is aligned from top to bottom-line. 2, programmed to achieve the following functions: (1) according to the order of small to large numbers of workers will be five employees data (including number, name, age, salary) to save the output to a disk file (2) from the keyboard 2 a staff of data (number of workers has been greater than the number of workers), to the end of the file (3) the output file, all the workers of the data (4) from the keyboard to enter a number, from the document to find there is no such trade union number, if you show this to all information workers. If not, the output of " It is not people." .
2、编程序实现以下功能:
(1)按职工号由小到大的顺序将5个员工的数据(包括号码、姓名、年龄、工资)输出到磁盘文件中保存;
(2)从键盘输入两个员工的数据(职工号大于已有的职工号),增加到文件的末尾;
(3)输出文件中全部职工的数据;
(4)从键盘输入一个号码,从文件中查找有无此职工号,如有则显示此职工的全部信息。如没有,就输出“无此人”。。
-1, from the keyboard a number of values to retain three decimal places, decimal point in the output is aligned from top to bottom-line. 2, programmed to achieve the following functions: (1) according to the order of small to large numbers of workers will be five employees data (including number, name, age, salary) to save the output to a disk file (2) from the keyboard 2 a staff of data (number of workers has been greater than the number of workers), to the end of the file (3) the output file, all the workers of the data (4) from the keyboard to enter a number, from the document to find there is no such trade union number, if you show this to all information workers. If not, the output of " It is not people." .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.