Advertisement
Guest User

Untitled

a guest
Feb 20th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int _tmain(int argc, _TCHAR* argv[])
  6. {
  7.     char a;
  8.     char szText[18];
  9.     cin.getline(szText,17);
  10.     cout << "Your string is... " << szText << endl;
  11.  
  12.     for (int i = 0; i < 18; i++)
  13.     {
  14.         if ((szText[i]) != 0)
  15.         {
  16.         szText[i]=(szText[i] >> (i+1));
  17.         cout << szText << endl;
  18.         }
  19.         else
  20.         {break;}
  21.     }
  22.  
  23.     cout << "Your encrypted string is... \n" << szText;
  24.     cin >> a;
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement