Create a simple program using a struct or class to make a user defined type for Book.

Question:

Create a simple program using a struct or class to make a user defined type for Book. Add data members for title, author, and number of pages. Create two variables of type Book and use the dot operator . to fill in the data members for each such instance. Use iostreams to both prompt the user for input values, and to print each Book instance when complete. Use only features covered in this chapter.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer: