资源列表
[数据结构常用算法] a
说明:建一个表示雇员信息的employee类,其中包含数据成员name、empNo和salary,分别表示雇员的姓名、编号和月薪。再从employee类派生出3个类worker、technician和salesman,分别代表普通工人、科研人员、销售人员。三个类中分别包含数据成员productNum、workHours和monthlysales,分别代表工人每月生产产品的数量、科研人员每月工作的时数和销售人员每月的销售额。要求各类中都包含成员函数pay,用来计算雇员的月薪,并假定: 普通工人的月薪<小东> 在 2025-06-11 上传 | 大小:1kb | 下载:0
[数据结构常用算法] EightQueen
说明:采用递归算法解决著名的八皇后问题-Resolve eight queen problem<shjxuan> 在 2025-06-11 上传 | 大小:1kb | 下载:0
[数据结构常用算法] 060405113519
说明:用set容器进行排序的示例函数,可以实现快速的正向,逆向排序,根据类的元素来作为排序依据。-Use the example set containers to sort function, can achieve rapid positive, reverse order, according to the type of element to order as the basis.<一点兰心> 在 2025-06-11 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Merge-sort
说明:一个归并排序函数代码,用归并的思想对某一数组进行排序,可以被直接调用来使用-A merge sort function code, by merging thought of a sort an array, can be called directly to use<Loben> 在 2025-06-11 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Huffman-tree
说明:利用静态链表建立赫夫曼树,建树过程中左子树权值小于右子树权值,求各结点的编码。叶子结点的个数n及结点值由键盘录入-Using static linked list to establish a Huffman tree, set during the process of weight less than the right subtree subtree weights, and each node coding. Leaf node of the number N and node valu<Loben> 在 2025-06-11 上传 | 大小:1kb | 下载:0