Guest User

Untitled

a guest
Feb 25th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <vector>
  4. #include <string>
  5. #include <chrono>
  6. #include <map>
  7.  
  8. struct Person {
  9.     std::string name;
  10.     std::string surname;
  11.     int age;
  12. };
  13.  
  14. std::vector<Person> GetMoscowPopulation();
  15.  
  16. void PrintPopulationSize(std::vector<Person> p) {
  17.     std::cout << "There are " << p.size() << " people in Moscow" << std::endl;
  18. }
  19.  
  20. int main()
  21. {
  22.    
  23.     std::vector<Person> people = GetMoscowPopulation();
  24.     PrintPopulationSize(people);
  25.  
  26.     return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment