Question: In c++. How do i print 5 things at once until the user hits enter and then another 5 print? like if i had string

In c++.

How do i print 5 things at once until the user hits enter and then another 5 print?

like if i had

string name[10]={"Charles","Megan","Luke","Jacob","Beth","Riley","Gary","Sarah","Dave","Pat"}

cout<< name << endl;

what would i put to make it so it prints the first 5 names, then hit enter and the last 5 names priint?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!