nc print person

This commit is contained in:
vrd
2022-12-17 18:12:16 +02:00
parent 87dc80c9f8
commit 0da0f98dc9
5 changed files with 15 additions and 7 deletions
+6 -3
View File
@@ -5,11 +5,13 @@
using std::cin;
using std::cout;
int main()
{
setlocale(LC_ALL, "");
initscr(); /* Start curses mode */
noecho();
cbreak(); /* get input instantly */
refresh(); /* if not present the first real refresh is missed */
/*Tree test1("Dechkovi"); //addTree Dechkovi addTree Karamanovi load 0 load 1 (to work with these example trees)
Tree test2("Karamanovi");
@@ -51,10 +53,11 @@ int main()
firstTree.addRelation(2, Brother, 3);
firstTree.addRelation(2, Brother, 4);
firstTree.print();
/* firstTree.print(); */
firstTree.draw();
firstTree.saveTree();
firstTree.printRel(3);
/* firstTree.printRel(3); */
firstTree.printOldestAncestors(3);