#include struct Tester { Tester() { // even though 'x' and 'hw' have not been declared yet // names declared in a class have scope in all constructors // and functions in the class see [3.3.6] x = 0; hw(); } void hw() { using namespace std; cout << "Hello World" << endl; } int x; }; int main(int argc, char** argv) { Tester t; return 0; }