Declare a structure whose tag name is Book and that contains exactly three fields (or members), each of type int. The first field is nCopies, the second field is nPages and the third field is nAuthors.
LANGUAGE: C++
CHALLENGE:
Declare a structure whose tag name is Book and that contains exactly three fields (or members), each of type int. The first field is nCopies, the second field is nPages and the third field is nAuthors.
SOLUTION:
struct Book{ int nCopies, nPages, nAuthors; };