Question: ask 2 : Display Users / / Display all users: / / This function takes as input: / / 1 ) the users list /

ask 2: Display Users
// Display all users: // This function takes as input: //1) the users list // And works as follows: //1) Traverse the list, and invoke the GIVEN function // print_user_data(User *user) to print the data of each user //** DISCLAIMER**: You MUST not modify any GIVEN function or the contents of given cout's. void display_users(User *user_head){// TODO: Write code to implement // Print this first and return imidiately if there are no users cout<<"No users in the system yet"<<"
";//display this when no users exist cout <<"=== Users List ([uid, name])==="<< endl; }
Here is a sample way to display users:
Suppose we have John(uid:32), Bob(uid:6), and Peter(uid:56) in the list
=== Users List ([uid, name])=== User Id: 6, name: Bob User Id: 32, name: John User Id: 56, name: Peter

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 Programming Questions!