Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <complex>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7.  
  8.  
  9. int main() {
  10.  
  11. char tekst[] {"abcdefghijklmnopqr"};
  12. char *p(tekst), *q(&tekst[5]), *r(end(tekst)-10);
  13.  
  14. while(p++ != q) {
  15. while(--r > q)
  16. {cout<<*r;
  17. *p = ((*q++) + (++(*r))) % 28 + 'a';
  18. cout<<*r;
  19.  
  20. }
  21.  
  22. }
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement