ifinox

Untitled

Feb 26th, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. int main()
  2. {
  3.     // mapa
  4.     std::map<std::string, int> telefony;
  5.     telefony["Michal walczuk"] = 51231231;
  6.     telefony["Zjeb walczuk"] = 666;
  7.     std::cout << telefony["Zjeb walczuk"];
  8.  
  9.     // set
  10.     std::set<int> zbiorLiczb;
  11.     for(int i = 0; i<10; i++)
  12.         zbiorLiczb.insert(i);
  13.     for(int i = 0; i<10; i++)
  14.         zbiorLiczb.insert(i);
  15.     for(auto x : zbiorLiczb)
  16.         std::cout << x << " ";
  17. }
Advertisement
Add Comment
Please, Sign In to add comment