216k views
0 votes
Struct Book

{ string author;
]string title;
int edition;
};
Write statement(s) to create a Book type variable named fiction to store the 1st edition of George Orwell's famous novel titled 1984.

User Eumiro
by
7.4k points

1 Answer

2 votes

Final answer:

A Book type variable named fiction can be created to store the first edition of George Orwell's '1984' using the C++ code: Book fiction = {"Orwell, George", "1984", 1};.

Step-by-step explanation:

To create a Book type variable named fiction to store the 1st edition of George Orwell's famous novel titled 1984, you would write the following statement in C++:

Book fiction = {"Orwell, George", "1984", 1};

This will initialize the fiction variable with the author set to George Orwell, the title set to 1984, and the edition set to 1.

User Dave Hein
by
7.1k points