Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- #include <string>
- #include <vector>
- int main()
- {
- //std::map<std::string, int> arr;
- std::vector<std::map<std::string, std::string>> person;
- std::string s,l,f;
- while (s != "exit")
- {
- //arr[i] = rand()%(10-1+1)+1;
- std::cout <<std::endl;
- std::cout <<"Enter last_name: "<<std::flush;
- std::cin >> s;
- l =
- person["last_name"] = s;
- std::cout <<"Enter first_name: "<<std::flush;
- std::cin >> s;
- if (s == "exit")
- {
- break;
- }
- }
- for (auto it = person.begin(); it != person.end(); it++)
- {
- std::cout <<std::endl;
- std::cout <<"Team - "<<it->first<<": "<<it->second<<std::endl;;
- }
- // for (int i = 0; i < n; n++)
- // {
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement