文件名称:xuanke
介绍说明--下载内容均来自于网络,请自行研究使用
有5位教师(参见文件file14_1.txt)同时讲同一门课,而学习此课程的学生(参见文件file14_2.txt)可以自由选取上课教师,但每个学生只能选1个老师。请模拟这个“选教师”系统。功能应包括以下方面:
(1)学生选教师(包括改选)。
(2)查询某位教师的学生人数。
(3)查询某位学生所选的教师。
(4)学生人数越多,表示该教师越受欢迎。请按照学生人数降序打印教师名单。
说明:file14_1.txt中数据的排列顺序是:教师号,姓名,学生人数;file14_2.txt中数据的排列顺序是:学号,姓名,教师名。
【基本要求】用户界面中的菜单至少应包括“选教师”、“查询教师情况”、“查询学生情况”、“降序打印教师名单”、“退出”5项。-There are five teachers (see document file14_1.txt) say the same course at the same time, learning students in this course (see document file14_2.txt) free to select the school teachers, but each student can only choose a teacher. Please simulation system of the selected teachers " . Should include the following aspects: (1) students selected teachers (including re-election). (2) The number of students query certain teachers. (3) check a student selected teachers. (4) The more the number of students that the teachers are more popular. Descending order according to the number of students to print the list of teachers. Descr iption: The The order of file14_1.txt data: the number of teachers, name, student numbers file14_2.txt the data in order: student number, name, teacher name. Requirements】 menu in the user interface should include at least the selected teachers " ," Query teachers circumstances, query student situation, the Descending print teacher list, Exit 5.
(1)学生选教师(包括改选)。
(2)查询某位教师的学生人数。
(3)查询某位学生所选的教师。
(4)学生人数越多,表示该教师越受欢迎。请按照学生人数降序打印教师名单。
说明:file14_1.txt中数据的排列顺序是:教师号,姓名,学生人数;file14_2.txt中数据的排列顺序是:学号,姓名,教师名。
【基本要求】用户界面中的菜单至少应包括“选教师”、“查询教师情况”、“查询学生情况”、“降序打印教师名单”、“退出”5项。-There are five teachers (see document file14_1.txt) say the same course at the same time, learning students in this course (see document file14_2.txt) free to select the school teachers, but each student can only choose a teacher. Please simulation system of the selected teachers " . Should include the following aspects: (1) students selected teachers (including re-election). (2) The number of students query certain teachers. (3) check a student selected teachers. (4) The more the number of students that the teachers are more popular. Descending order according to the number of students to print the list of teachers. Descr iption: The The order of file14_1.txt data: the number of teachers, name, student numbers file14_2.txt the data in order: student number, name, teacher name. Requirements】 menu in the user interface should include at least the selected teachers " ," Query teachers circumstances, query student situation, the Descending print teacher list, Exit 5.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
xuanke.cpp