Jul 24, 2011 at 4:18am
call the function, do this instead:
cout << "the name of function: " << z();
Jul 24, 2011 at 4:19am
You're missing the brackets:
cout << "the name of function: " << z();
just printing z
means you're printing the function's address in memory.
Jul 24, 2011 at 4:54am
omg what a careless mistake! thx guys.. haha, long time didn't touch c++