Created
December 8, 2012 23:26
Revisions
-
acoster revised this gist
Dec 8, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,5 +28,4 @@ class App int main(int, char **) { App a(static_cast<const void *>(__C __A __D __B)); } -
acoster revised this gist
Dec 8, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,5 +28,5 @@ class App int main(int, char **) { App a(static_cast<const void *>(__C __A __D __B)); return 0; } -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ #include <string> #include <algorithm> #include <iostream> #define __A "!zbei" #define __B "zqqbI" #define __C "\"mmjX" #define __D "usjc!" class App { public: App(const void *p) : mStrMsg(static_cast<const char *>(p)) {} ~App() { auto f = [](char c) -> char { return c -1; }; std::for_each(mStrMsg.rbegin(), mStrMsg.rend(), [&](char c) { std::cout << f(c); }); std::cout << std::endl; } private: std::string mStrMsg; }; int main(int, char **) { App a(static_cast<const void *>(__C __A __D __B)); return 0; }