Binary Search Tree

getting error code at astericked line. Help would be so appreciated.

#include <iostream>
#include "employee.h"
#include "BinaryTree.h"
using namespace std;

int main()
{
int num = 0;

EmployeeInfo item;
BinaryTree<EmployeeInfo> tree;

cout << "Inserting nodes. ";
item.setID(1021);
item.setName("John Williams");

BinaryTree<EmployeeInfo>::TreeNode node;
node.value = item;
*tree.insertNode(node); GETTING ERROR HERE ON NODE"cannot convert parameter"


// Display the workforce.
cout << "Here is the workforce:\n\n";
tree.displayInOrder();

// Get an ID number to search for.
cout << "\nEnter an employee number: ";
cin >> num;

// Search for the employee in the tree.
EmployeeInfo *ptr = tree.searchNode(num);
if (ptr)
{
cout << "Employee was found:\n" << *ptr;
}
else
{
cout << "That employee was not found.\n\n";
}

return 0;
}
Topic archived. No new replies allowed.