main.cpp
// Final util function to give the answer
Final util function to give the answer
Final util function to give the answer
void globalResult(Parentesc *node){
    if(node->countGen >= 2){
        cout << checkTypes(node, "Eine ", "Ein ");
    }else{
        cout << checkTypes(node, "Die ", "Dier ");
    }
    solution(node);
    cout << " von ";
    string entity = node->entity == 'M' ? "Maria" : "Johann";
    cout << entity;
}
void globalResult ( Parentesc * node ) { if ( node -> countGen >= 2 ) { cout << checkTypes ( node , " " , " " ) ; } else { cout << checkTypes ( node , " " , " " ) ; } solution ( node ) ; cout << " " ; string entity = node -> entity == ' ' ? " " : " " ; cout << entity ; }
Final util function to give the answer
Final util function to give the answer