#include <iostream> struct Foo { void DoSomething() { std::cout << "something" << std::endl; } }; void main() { Foo f; f.DoSomething; }