文件名称:main
介绍说明--下载内容均来自于网络,请自行研究使用
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