文件名称:a
介绍说明--下载内容均来自于网络,请自行研究使用
“用折半查找法找出该职工的姓名”
写几个函数:
1,输入10个职工的姓名和职工号;
2,按职工号由小到大顺序排序,姓名顺序也随之调整;
3,要求输入一个职工号,用折半查找法找出该职工的姓名,从主函数输入要查找的职工号,输出该职工的姓名。-" Using a binary search method to find the names of the workers," wrote several functions: 1, enter 10 names and employee numbers of employees 2, sorted by the order from small to large staff numbers, names also will be adjusted in order 3 asked to enter an employee number, using a binary search method to find the employee' s name, from the main function of the input to find the number of workers, the output of the employee' s name.
写几个函数:
1,输入10个职工的姓名和职工号;
2,按职工号由小到大顺序排序,姓名顺序也随之调整;
3,要求输入一个职工号,用折半查找法找出该职工的姓名,从主函数输入要查找的职工号,输出该职工的姓名。-" Using a binary search method to find the names of the workers," wrote several functions: 1, enter 10 names and employee numbers of employees 2, sorted by the order from small to large staff numbers, names also will be adjusted in order 3 asked to enter an employee number, using a binary search method to find the employee' s name, from the main function of the input to find the number of workers, the output of the employee' s name.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
a.java
a.c
a.c