纯属装逼版:
int main() { __asm { push 0x00000021 push 0x646c726f push 0x77202c6f push 0x6c6c6568 push esp call printf add esp, 20 } return 0; }
装逼升级版:
int main() { __asm { push 0x00000021 push 0x646c726f push 0x77202c6f push 0x6c6c6568 push esp call $ + 5 pop ebx add ebx, 11 push ebx push printf ret add esp, 20 } return 0; }
1
#include <iostream> #define 最复杂的方法(X) std::cout << X << std::endl int main() { 最复杂的方法("hello world"); return 0; }
2
#include <iostream> class 最复杂 { public: void 打(const char* str) { std::cout << str << std::endl; } }; int main() { 最复杂{}.打("hello world"); return 0; }
3
#include <iostream> namespace 最复杂 { void 打(const char* str) { std::cout << str << std::endl; } }; int main() { 最复杂::打("hello world"); return 0; }
4
#include <iostream> #include <type_traits> template <std::size_t N> void 的方法(const char* s) { std::cout << s[0]; 的方法<N - 1>(&s[1]); } template <> void 的方法<1>(const char* s) { std::cout << s << std::endl; } template <std::size_t N> void 最复杂(const char(&s)[N]) { std::cout << s[0]; 的方法<N - 1>(&s[1]); } int main() { 最复杂("hello world"); return 0; }
5
void 最复杂的方法() { static_assert(false, "hello world"); } int main() { 最复杂的方法(); return 0; }
6
[[deprecated("hello world")]] void 最复杂的方法() { } int main() { 最复杂的方法(); return 0; }
还是吃的太撑了.jpg
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 tinynews.org All Rights Reserved. 百科问答小站 版权所有