Question: Suppose we have the following declarations: struct Time { int hours ; int minutes ; int seconds ; }; struct User { string username ;

Suppose we have the following declarations:

struct Time

{

int hours;

int minutes;

int seconds;

};

struct User

{

string username;

string password;

int userID;

Time lastLogin;

} newUser;

User* userPtr = &newUser;

Use the member selection arrow operator -> to show how you can set the lastLogin time of *userPtr to 16 hours, 43 minutes, and 39 seconds.

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!