1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
///////////////////////// MAIN.cpp /////////////////////////
#include <iostream>
#include <fstream>
#include "GeneralTree.h"
using namespace std;
int main(){
GeneralTree cTree;
int tIDs[] = { 100,200,300,400,500,600,700,800,900 };
int numOfChilds[] = { 9,4,2,2,4,6,8,6,4 };
cTree.setTreeChildren(tIDs, numOfChilds);
cTree.printTree();
return 0;
}
| |