Question: #include #include using namespace std; struct struct 3 { int mv 5 string mv 6 ; } ; struct struct 2 { struct 3 *

#include
#include
using namespace std;
struct struct3{
int mv5
string mv6;
};
struct struct2{
struct3* mv3;
int mv4;
};
struct struct1{
string mv1;
struct2 mv2;
};
int main(){
//Declare three variables: s1, s2, and s3
//The date type of them are struct1, struct2, and struct3, respectively.
//To Do (3 points)
//Initialize s1, s2, and s3 using suitable values for all the member variables.
//To Do (3 points)
//Access the value of mv6 through s1, and output the value.
//In other words, you cannot use s2 or s3 explictly in your code.
//To Do (2 points)
}
FILL IN THE TO DO'S
 #include #include using namespace std; struct struct3{ int mv5 string mv6;

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!