char nodeType = //did you look at the link? condition ? result_if_true : result_if_false, thats the set up. Create a conditional operator statement (the ? after condition should be in code) out << nodeType << " " << root->question << endl; //I gave you this part to replace your cout line.
Yeah I read the link. I don't think I am setting it up right because c++ throw errors when I set the nodeType equal to the '?' or 'Q.' using the condition:
char nodeType = 'Q' ?; result_if_true : result_if_false;
Can you even set a variable to a condition?