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
Get step-by-step solutions from verified subject matter experts
