搜索资源列表
实现顺序栈的各种基本运算
- 1、编写一个程序algo3-1.cpp,实现顺序栈的各种基本运算,并在此基础上设计一个主程序实现如下功能: (1)初始化栈S。 (2)判断栈S是否非空。 (3)依次进栈元素a,b,c,d,e。 (4)判断栈S是否非空。 (5)输出栈的长度。 (6)输出从栈顶到栈底的元素。 (7)输出出栈序列。 (8)判断栈S是否非空。 (9)释放栈 ,1, the preparation of a program algo3-1.cpp, the realization of
aglo7
- (一) 编写一个程序LAGO7-1.CPP,实现二叉树的各种运算,并在此基础上设计一个主程序完成如下功能。 (1) 输出二叉树B; (2) 输出二叉树B的深度; (3) 输出H结点的左、右孩子结点值; (4) 输出二叉树B的宽度; (5) 输出二叉树B的结点个数; 输出二叉树B的叶子结点个数 -(A) to prepare a program LAGO7-1.CPP, to achieve a variety of binary operations, and on
sadgf
- 编写一个程序algo7-1.cpp,实现二叉树的各种基本运算,并在此基础上设计一个主程序完成如下功能:-Write a program algo7-1.cpp, a variety of basic operations to achieve a binary tree, and on this basis, the design of a main program to complete the following functions:
cpp
- 数组应用,可以实现数据的输入和排序、查找、插入、删除等功能、dos界面-Array of applications, data input and sorting, search, insert, delete and other functions, dos interface
data-stucture-cPP
- 学数据结构的时候做的一些小型的练习,c++实现的堆栈队列二叉树等,对于学习数据结构算法的朋友里面的很多函数有参考价值哦-some small practices when i learnning the data stucture, use the c++ language to excute the stack, queue, binary tree, i hope the functions in my codes can help some friends to learn the dat
CPP
- 关于树这个数据结构的具体实现 及其基本功能实现-Tree data structure on the concrete realization of the basic functions and its realization
8queen
- 一个简单的8皇后问题的解答,里面有一个cpp文件和两个h文件,h文件一个是棋盘类,一个是写函数,cpp文件为主程序。输出为一个.txt文件,上面有所有问题的答案-A simple 8-queens problem solution, which has a cpp file and two h files, h files one is the class board, one is to write functions, cpp file-based program. Output as a.
my-CPP
- 假设某销售公司有销售经理和销售员工,月工资的计算办法是:销售经理的固定月薪为8000元并提取销售额的5/1000作为工资;销售员工只提取销售额的5/1000作为工资。编一程序,定义一个基类Employee,它包含三个数据成员number、name和salary,以及用于输入编号和姓名的构造函数。由Employee类派生Salesman类,再由Salesman类派生Salesmanager类。Salesman类包含两个新数据成员 commrate和sales,还包含用于输入销售额并计算销售员工工资
Search-Tree
- C语言编写,二叉查找树的非递归实现。包含一个描述二叉树的头文件和实现功能的cpp文件。-Non-recursive implementation of binary search tree, written in C++. Contains a header file of the binary tree of the header files and source file of functions.
algo2-2
- 编写一个程序AhGO2-2.CPP,实现单链表的各种基本运算,并在此基础上设计一个主程序完成如下功能:(1)初始化单链表h(2)依次采用尾插法插入a,b,c,d,e元素(3)输出单链表h:(4)输出单链表h长度(5)判断单链表h是否为空(6)输出单链表h的第3个元素(7)输出元素a的位置(8)在第4个元素位置上插入f元素(9)输出单链表h:(10)删除h的第3个元素(11)输出单链表h:(12)释放单链表h-Write a program AhGO2-2.CPP, basic operation
alogo2-1
- 一 ..编写一个程序alogo2-1.cpp,实现顺序表的各种基本运算,并在此基础上设计一个主程序完成如下功能: (1) 初始化顺序表L (2) 依次采用尾插法插入a,b,c,d,e元素; (3)输入顺序表L (4) 输出顺序表L长度; (5)判断顺序表是否为空; (6)输出顺序表的底3个元素; (7)输出元素a的位置; (8) 在第4个元素位置上插入f元素; (9)输出顺序表L (10)删除表的第3个元素; (11)输出顺序表; (12)释放
Data-structures-CPP
- 该程序主要是关于数据结构方面的,包括链表相关功能的实现,各种排序方法如冒泡排序,二分插入排序,图的实现,矩阵和树等程序的实现-The program data structures, including the related functions of the linked list implementation, various sorting methods such as bubble sort, binary insertion sort, graph realization matri
Msoftcon
- CPP file for DOS Graphic functions. platform Visual C-CPP file for DOS Graphic functions. platform Visual C++
HEAPSORT-IMPLEMENTATION.cpp
- 定义一个数组,初始化为空。在数组上执行两种操作: 1、增添1个元素,把1个新的元素放入数组。 2、输出并删除数组中最小的数。 使用堆结构实现上述功能的高效算法。-The definition of an array is initialized to empty. Performed on the array of two things: 1, adding an element to a new element into the array. 2, and removes the
red-and-black-tree-cPP
- 用红黑树实现数据的排序、插入、及删除功能-With a red-black tree implementation to sort the data, insert, and delete functions