Advertisement
Ilya_konstantinov

Untitled

Nov 22nd, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. #include "func.h"
  5.  
  6. int main() {
  7.     size_t n; std::cin >> n;
  8.     std::vector<Book> v(n);
  9.     for (size_t i = v.size(); i > 0; --i) {
  10.         v[i - 1] = read();
  11.     }
  12.     for (Book cur : v) {
  13.         print(cur);
  14.         std::cout << '\n';
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement