Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string input;
- string velke[1000];
- string male[1000];
- string cisla[1000];
- int i=0;
- while (cin >> input)
- {
- for(int j=0; j<input.size(); j++)
- {
- if(islower(input[j]))
- male[i] += input[j];
- else if(isupper(input[j]))
- velke[i] += input[j];
- else if(isdigit(input[j]))
- cisla[i] += input[j];
- }
- i++;
- }
- for(int i=0; i<1000; i++)
- {
- if(male[i]!="")cout << male[i]<<" ";
- }
- for(int i=0; i<1000; i++)
- {
- if(velke[i]!="")cout << velke[i]<<" ";
- }
- for(int i=0; i<1000; i++)
- {
- if(cisla[i]!="")cout << cisla[i]<<" ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement