posted 8 years ago
I am creating a program that uses a Search Binary Tree to keep track of students that get added and deleted from a list. The program reads a text file that contains certain a command (add, delete, calculate average,etc) followed by the student name, age, and gender. For example, the first line of the text file would be: E Jake 14 M. E would stand for enroll(add).
I'm having issues both conceptually and coding wise.
I have a queue class, a queueLL class that implements the queue class, I have a camper class that returns name, age, and gender, and compares each student name, and lastly I have my search binary tree class.
The issue is in the main class:
I don't think my implementation is correct and I am hitting a wall in terms of trying to finish the code. I get errors of trying pass the file argument in Camper
The values define were 3 strings in my Camper Class file (name, age, gender). Any Help would be appreciated!
Edit Code for Camper: