1 2 3 4 5 6 7 8 9 10 11
#include <iostream> int main() { struct { void foo() { std::cout << "hello world" << std::endl; } } hoge; hoge.foo(); return 0; }
1
hello world