Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define a (char)0x41
- class ch{
- char c;
- public:
- ch(){c = a;}
- ch &operator++(){c += 4; return *this;}
- ch &operator++(int hc){c++; return *this;}
- ch &operator--(){c -= 4; return *this;}
- ch &operator--(int hc){c--; return *this;}
- ch &operator!(){std::cout << c; return *this;}
- } c;
- int main(){
- !----------------------------(!----(!--(!++(!----(!++++++++++++++++++++++++++++(!------------------------(!++(!!++++(!--(!++++c--)++)--)--)++)--))--)----))----;
- }
- /*
- * Pretty-printing is for noobs...
- */
- #include <iostream>
- #define a (char)0x41
- class ch{char c;public:ch(){c=a;}ch &operator++(){c+=4;return*this;}ch &operator++(int hc){c++;return*this;}ch &operator--(){c-=4; return*this;}ch &operator--(int hc){c--;return*this;}ch &operator!(){std::cout<<c;return*this;}}c;int main(){!----------------------------(!----(!--(!++(!----(!++++++++++++++++++++++++++++(!------------------------(!++(!!++++(!--(!++++c--)++)--)--)++)--))--)----))----;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement