i have a small stupid error in my default constructor that i cannot figure out what it is
GuessingGame.cpp:5: error: expected `)' before "tree"
GuessingGame.cpp:5: error: expected `,' or `;' before "tree"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
GuessingGame(BinaryTree tree) /// error on this line
{
BinaryTree tree1, tree2, tree3;
tree1.setRootData("Is the team in the SEC West?");
tree2.setRootData("Is the teams color red?");
tree2.attachLeft("Kentucky");
tree2.attachRight("Georgia");
tree3.setRootData("Is the teams color red?");
tree3.attachRight("Arkansas");
tree1.attachLeftSubtree(tree2);
tree1.attachRightSubtree(tree3);
}