Advertisement
ItsMeLucifer

szyfr c++

Apr 10th, 2019
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include <iostream>
  2. #include <cctype>
  3. #include <ctype.h>
  4. #include <cstring>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.    // for(int j=-3;j<33;j++){
  11.  
  12.     char napis[]="DOXQRIRGB MFBOTPWX LPLYX ALPQXGB MIRPFHX";
  13.     for(int i=0;i<40;i++){
  14.     int n=3;
  15.     bool cos=isspace(napis[i]);
  16.     if(!cos){
  17.            if(napis[i]>87){
  18.  
  19.             int f=(90-napis[i]);
  20.             n-=f;
  21.             //if(napis[i]=90){n=0;}
  22.             napis[i]=64+n;
  23.            }else {napis[i]+=n;}
  24.  
  25.     }
  26.  
  27.     cout<<napis[i];
  28.     }
  29.     cout<<endl;
  30.  
  31.  
  32.   //  }
  33.  
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement