TemplatedSortedList-main.cpp #include <iostream> #include <fstream> The driver c
ID: 3824699 • Letter: T
Question
TemplatedSortedList-main.cpp
#include <iostream>
#include <fstream>
The driver code processes the following commands:
A <NAME> (admits patient NAME)
D <NAME> (discharges patient NAME if NAME is in the list, silently continues otherwise)
F <NAME> (prints patient NAME if found in the list)
V (visits all patients and displays their names in list order)
Task (TO DO)
Write a sorted list class
Write a templated class
Overload different operators
Write a TemplatedSortedList class (in TemplatedSortedList.h) that implements a sorted list (linked- or array-based). Additionally, you get to template the classand provide overloaded operators such that the driver code compiles and produces correct output.
Input FILE
Output
Explanation / Answer
Input FILE
Output
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.