whitespace

This commit is contained in:
vrd
2022-12-10 19:21:49 +02:00
parent 30e6480343
commit 489479fd32
3 changed files with 106 additions and 97 deletions
+12 -3
View File
@@ -8,6 +8,8 @@ using std::cout;
int main() int main()
{ {
initscr(); /* Start curses mode */
/*Tree test1("Dechkovi"); //addTree Dechkovi addTree Karamanovi load 0 load 1 (to work with these example trees) /*Tree test1("Dechkovi"); //addTree Dechkovi addTree Karamanovi load 0 load 1 (to work with these example trees)
Tree test2("Karamanovi"); Tree test2("Karamanovi");
@@ -55,6 +57,10 @@ int main()
firstTree.printOldestAncestors(3); firstTree.printOldestAncestors(3);
/* ====================================================== */
refresh(); /* Print it on to the real screen */
Array<Tree> trees; Array<Tree> trees;
bool quit = false; bool quit = false;
@@ -90,13 +96,13 @@ int main()
}; };
unsigned curTree = 0, //Currently selected tree ID unsigned curTree = 0, //Currently selected tree ID
id, secondId; //Indexes id, secondId; // Person IDs
Tree *newTree; Tree* newTree;
char name[128], secondName[128]; char name[128], secondName[128];
U8 day, month; //TODO add h m U8 day, month; //TODO add h m
U16 year; U16 year;
bool sex; bool sex;
unsigned father, mother; unsigned father, mother; // IDs
do do
{ {
@@ -262,5 +268,8 @@ int main()
} while (!quit); } while (!quit);
endwin(); /* stop ncursers */
return 0; return 0;
} }