asked 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.

asked
User Eumiro
by
8.0k 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.

answered
User Dave Hein
by
7.8k points