Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zadanie4()
- {
- string s;
- vector<list<string>> TABL;
- TABL.resize(10);
- fstream input("slowa.txt", ios::in);
- if (input.good())
- {
- while (!input.eof())
- {
- input >> s;
- cout << s << endl;
- TABL[s.size()].push_back(s);
- }
- }
- srand(time(NULL));
- int z;
- z = rand() % 10;
- while (!TABL[z].empty())
- {
- TABL[z].sort();
- z = rand() % 10;
- //cout << TABL[z]; nie dziaลa
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement