daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest May 17th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <set>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     string valami;
  9.     int szam;
  10.     set<string> valamik;
  11.  
  12.     for (int i=0;i<3;++i)
  13.     {
  14.         cin >> szam;
  15.         cin >> ws;
  16.         getline(cin,valami,'\n');
  17.         cout << valami << ";" << szam << endl;
  18.         valamik.insert(valami);
  19.     }
  20.     cout << valamik.size() << endl;
  21.     for (set<string>::iterator it=valamik.begin();it!=valamik.end();++it)
  22.     {
  23.         cout << *it << ";";
  24.     }
  25.     cout << endl;
  26.     return 0;
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top