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

11y 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.


How do you list a book in the Library of Congress?

To list a book in the Library of Congress, you typically need to apply for a Cataloging in Publication (CIP) data block, which can be requested through the Library of Congress website. You'll need to provide details about the book, including its title, author, publication date, and a brief description. Once your application is approved, the Library of Congress assigns a control number and creates a catalog record for your book. It's important to submit the application before publication to ensure the CIP data is included in the book.