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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!