int num = 0;
cout << "Inserting nodes. ";
node.value = item;
// Display the Student List.
cout << "Here are the Students:\n\n";
// Get an ID number to search for.
cout << "\nEnter the Student's number: ";
cin >> num;
// Search for the Student in the tree.
EmployeeInfo *ptr = tree.searchNode(num);
cout << "Student was found:\n" << *ptr;
cout << "That Student was not found.\n\n";
I believe the issue lies in my Student.h but I can't seem to put a pin in what went wrong.
Edit: I'm using a binary tree header as well, but haven't included in due to length. I can provide it if necessary, but I tested it with another program and it seems to work fine.