Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can I get two example without using auto and with using auto please~ 3. Write the code for the function printcontacts, it should print out

Can I get two example without using auto and with using auto please~

image text in transcribed

3. Write the code for the function printcontacts, it should print out the contacts in a format similar to (don't use auto): (10pts) Jerry #include #include #include #include #include using namespace std; home: 3104444444 cell: 2135555555 email s@elco. edu cell: 8186666666 void printContacts map>>& contacts) { int main) i map>> contacts; // emplace just pushes the two strings as a pair to the // back of the vector. It's similar to push back. contacts"Jerry".emplace back ("home:", "3104444444") contacts"Jerry".emplace_back ("cell:", "2135555555" contacts"Sarah".emplace_back ("email:", "selco.edu" contacts"Sarah".emplace_back ("cell:", "8186666666"; printcontacts (contacts)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago

Question

LO4 List options for development needs analyses.

Answered: 1 week ago