What tools can a tree structure be implemented with? Hierarchical model of the company: let's say there is 1 head, 3 managers and 7 employees. Is it possible to create a linked list of 3 cells, but such that in each element there is a corresponding number of necessary cells, something like a dynamic array?
vector<list>>:), but it is not clear what the deal with the tree structure is. It seems to me - you need to dance on the functionality, what you want to do with them. For example, they can all be derived from some kind of “employee” class, and an enterprise can be a collection of employees or something like that ... - Harry