L3odr0id a3a2c3004a Input end update | преди 4 години | |
---|---|---|
README.md | преди 4 години | |
cl.cpp | преди 4 години | |
cl.h | преди 4 години | |
main.cpp | преди 4 години |
C++ code that creates very simple tree of different objects. Download and modify the code!
fist line : <name for root object>
next lines: <name of object to connect> <name of new object> <num of class (2,3,4)> <data>
last line: endtree
root
root obj1 3 1
root obj2 2 10
obj1 lol 4 -3
endtree
root
|
|-obj1
| |-lol
|
|-obj2
Object is ready, when data > 0.
The object root is ready
The object obj1 is ready
The object lol is not ready
The object obj2 is ready