Guest User

Untitled

a guest
Sep 18th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <cstring>
  5. #define MAXLEN 200
  6. #define Alpha 27
  7.  
  8. using namespace std;
  9.  
  10.  
  11. char S1[MAXLEN], S2[Alpha];
  12. int i,j=0,counter, alphacounter=0;
  13. char c;
  14. int var;
  15. char r[Alpha];
  16. char u;
  17. int distance;
  18. int times;
  19.  
  20.  
  21. int main()
  22. {
  23.    
  24.    
  25.    
  26.    
  27.    
  28.    
  29.    
  30.     for (i=0,counter=0;cin.get(S1[i]),S1[i]!= '.';counter++,
  31.          i++)
  32.  
  33.        
  34.        
  35.     var=i;
  36.     i=0;
  37.     counter=0;
  38.     cout << endl;
  39.     while (counter <= var)
  40.     {
  41.    
  42.     if (S1[i] >='a' && S1[i]<='z')
  43.         cout << S1[i] << "   ";
  44.        
  45.         counter++;
  46.         i++;
  47.        
  48.        
  49.        
  50.        
  51.         }
  52.    
  53.     i=0;
  54.     counter=0;
  55.     cout << endl;
  56.     u='a';
  57.     while (counter < 26){
  58.        
  59.         r[i++] = u;
  60.         u++;
  61.         counter++;
  62.        
  63.     }
  64.    
  65.     cout << r;
  66.    
  67.    
  68.    
  69.    
  70.     return 0;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment