Question: Write a program in C++ which should implement a binary tree using linked list. Elements of tree are objects of student class. student class contains
Write a program in C++ which should implement a binary tree using linked list. Elements of tree are objects of student class. student class contains attributes (privately defined) reg_no(int), st_name (string) and cgpa (float). student class should also contain member functions (publicly defined); constructor, input and output functions. User will insert objects of class student in binary tree, values of attributes of objects will be provided by user. Program should display the objects of student class in pre order, post order and in order traversal formats. Program should also search an object from tree which is provided by user as input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
