Question: C++ //R size >0 //E uses the overloaded < < operator in Song to print all the Songs //M nothing void print(Song** dataArray, int size)
C++
//R size >0 //E uses the overloaded << operator in Song to print all the Songs //M nothing void print(Song** dataArray, int size) { //TODO
} //Requires size >0 //Effects Prints top ten songs by calling print data method // if there are less than 10 songs in array then it prints them all otherwise it prints first 10 songs //Modifies nothing void printTopTen(Song** dataArray, int size) { //TODO }
//Requires size >0 //Effects Linear Searches for the song based on title //Prompts user for title //Modifies Nothing int searchASong(Song** dataArray, int size) { int steps = 0; std::cout << "Which title are you searching ?"; std::string title; getline(std::cin, title); //TODO return steps; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
