// Use for C++11 #include #include using namespace std; using namespace std::tr1; void first(function f) { f(); } void second() { cout << "second\n"; } int main() { first(second); }