#include #include #include #include 3 using namespace std;) void printRoster(map >>& roster) {) |/ Fill code here| }2 int main({map >> roster;roster["UCLA"]["CS15"]. emplace_back("Anthony...


2 Write the_code for the function printRoster, it should print out the contacts in a format similar to the<br>example. You can use a range-based for-loop and auto to simplify the solution, if you wish.<br>} #include <iostream><br>#include <list><br>#include <string><br>#include <utility><br>#include <map><br>3 using namespace std;<br>) void printRoster(map<string, map<string, list<string>>>& roster) {<br>) |/ Fill code here<br>| }<br>2 int main({<br>map<string, map<string, list<string>>> roster;<br>roster[

Extracted text: 2 Write the_code for the function printRoster, it should print out the contacts in a format similar to the example. You can use a range-based for-loop and auto to simplify the solution, if you wish. } #include #include #include #include #include

3 using namespace std; ) void printRoster(map>>& roster) { ) |/ Fill code here | } 2 int main({ map>> roster; roster["UCLA"]["CS15"]. emplace_back("Anthony Davis"); roster("UCLA"]["CS15"].emplace_back("Talen Horton-Tucker"); 5 roster("UCLA"]"MATH-101"]. emplace_back("LeBron James"); 1 roster("SMC"]["CHEM-101"]. emplace_back("Russel1 Westbrook"); 3 printRoster(roster); } return; Sample Output 2 UCB MATH101: LeBron James Cs15: Anthony Davis Talen Horton-Tucker SMC CHEM-101: Russell Westbrook


Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here