Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <cstring>
- #define MAXLEN 200
- #define Alpha 27
- using namespace std;
- char S1[MAXLEN], S2[Alpha];
- int i,j=0,counter, alphacounter=0;
- char c;
- int var;
- char r[Alpha];
- char u;
- int distance;
- int times;
- int main()
- {
- for (i=0,counter=0;cin.get(S1[i]),S1[i]!= '.';counter++,
- i++)
- var=i;
- i=0;
- counter=0;
- cout << endl;
- while (counter <= var)
- {
- if (S1[i] >='a' && S1[i]<='z')
- cout << S1[i] << " ";
- counter++;
- i++;
- }
- i=0;
- counter=0;
- cout << endl;
- u='a';
- while (counter < 26){
- r[i++] = u;
- u++;
- counter++;
- }
- cout << r;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment