Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 20th, 2012  |  syntax: C++  |  size: 0.44 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }