Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- char a;
- char szText[18];
- cin.getline(szText,17);
- cout << "Your string is... " << szText << endl;
- for (int i = 0; i < 18; i++)
- {
- if ((szText[i]) != 0)
- {
- szText[i]=(szText[i] >> (i+1));
- cout << szText << endl;
- }
- else
- {break;}
- }
- cout << "Your encrypted string is... \n" << szText;
- cin >> a;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement