Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 9th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. #include<string>
  5. using namespace std;
  6. int main()
  7. {
  8.     string Str1 = "^ |ASHIQUR RAHMAN| ^";
  9.     string Str2 = Str1;
  10.     Str2.append(Str1);
  11.     for(int i = Str1.length() - 1; i >= 0; i--)
  12.     {
  13.         string Str3 = Str2.substr(i , Str1.length());
  14.         cout << Str3.c_str() << endl;
  15.     }
  16.  
  17.     return 0;
  18. }