Question: 1. Given: struct Book { string title; string author; int yearPublished; }; Declare a vector to hold a list of books. Create a book and
1.
Given:
struct Book {
string title;
string author;
int yearPublished;
};
Declare a vector to hold a list of books. Create a book and insert it in the vector. You can fill it in withdata from your favorite book.
2.
Given the following structure:
struct Student {
string firstName;
string lastName;
string phoneNumber;
};
Create a student and assign name and phone number to its fields. You can do this in one or multiple statements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
