[ create a new paste ] login | about

Link: http://codepad.org/tNQUFdwu    [ raw code | output | fork ]

C++, pasted on May 5:
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;
}


Output:
1
hello world


Create a new paste based on this one


Comments: