Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <string>
- #include <chrono>
- #include <map>
- struct Person {
- std::string name;
- std::string surname;
- int age;
- };
- std::vector<Person> GetMoscowPopulation();
- void PrintPopulationSize(std::vector<Person> p) {
- std::cout << "There are " << p.size() << " people in Moscow" << std::endl;
- }
- int main()
- {
- std::vector<Person> people = GetMoscowPopulation();
- PrintPopulationSize(people);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment