answersLogoWhite

0

#include<iostream>

#include<string>

#include<vector>

struct book

{

std::string title;

std::string author;

// other members ...

};

int main()

{

std::vector<book> books;

books.push_back ( book {"Moby Dick", "Herman Melville"});

// ...

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Sort a book list in a library based on the discipline USING C plus plus programming?

Write your own C++ functions for the following problems:o Sort a book list in a library based on the disciplineo Print the sorted output on the console


How to write aC program to merge two singly linked list?

write a c program to circular queue


Where is list of Broadway shows since 1984?

it is in the library inside a book call Broadway


Write a program in C to create a Circular Linked list?

#include&lt;iostream.h&gt;


How can i find list of professors who taught at Princeton university in the 1800s?

Write to the Library at Princeton University.


What describes who was prosecuted in the holocaust?

Go to the library and check a book out or buy the movie "The Schindler's List."


Write a c program add two polynomial using link list?

GOUDHMARINI


What is javadoc?

write a java program to display "Welcome Java" and list its execution steps.


What is A list or index of books in library is called?

The book list. Or book index. I forget. Google it. Ask a librarian. Just stop asking me. Man, I wish I never took this job


What a list or index of books in a library called?

The book list. Or book index. I forget. Google it. Ask a librarian. Just stop asking me. Man, I wish I never took this job


Where can you get a list of the 1000 most important artists?

Such a list may not exist, but look in a library for a really big Art History book. The artists will be in it.


Write a HTML program to insert a selection list in a form?

&lt;select id="selectlist"&gt;&lt;option&gt; First&lt;/option&gt; &lt;option&gt; Second&lt;/option&gt;. This is a sample program to insert a selection list.