Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <algorithm>
- #include <vector>
- struct Book {
- int page_count;
- std::string name, color;
- };
- #include "func.h"
- int main(){
- int n; cin >> n;
- std::vector<Book> shelf(n);
- for (int i = 0; i < n; ++i) {
- std::cin >> shelf[i].name >> shelf[i].color >> shelf[i].page_count;
- }
- inventory(shelf);
- for (int i = 0; i < shelf.size(); ++i) {
- std::cout << shelf[i].name << '\n';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement