Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <source lang="cpp">
- include <iostream>
- template<char O, bool =O == 'h'? '-' :O == 'w'? '=' :0>class _;
- template<char O>std::ostream&operator<<(std::ostream&lhs,_<O,0>*) { return lhs << O; }
- template<char O>std::ostream&operator<<(std::ostream&lhs, _<(O), 'o'>*) { return lhs<<(char)(O - '!' + '.' - '-' ); }
- template<> std::ostream&operator<<<'~'>(std::ostream& m9,_<'~', 'o'>*) { return m9<<('m'); }
- int main(int orz=3) { std::cout<<(_<'h'>*)0<<(_<'e'>*)0<<(_<'l'>*)0<<(_<'l'>*)0<<(_<'o'>*)0<<(_<'w',0>*)0<<(_<' '>*)0<<(_<'w'>*)0<<(_<'o'>*)0<<(_<'r'>*)0<<(_<'l'>*)0<<(_<'d'>*)0<<(_<'!'>*)0<<std::endl; return 0; } </source>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement