错误的原因好像有两种
1.
http://groups.google.com/group/comp.lang.c++/browse_thread/thread/165fd677062f0d13
2.
http://cplusplus.syntaxerrors.info/index.php?title=Request_for_member_%E2%80%98bar%E2%80%99_in_%E2%80%98aFoo%E2%80%99%2C_which_is_of_non-class_type_%E2%80%98Foo*%E2%80%99
1.
http://groups.google.com/group/comp.lang.c++/browse_thread/thread/165fd677062f0d13
2.
http://cplusplus.syntaxerrors.info/index.php?title=Request_for_member_%E2%80%98bar%E2%80%99_in_%E2%80%98aFoo%E2%80%99%2C_which_is_of_non-class_type_%E2%80%98Foo*%E2%80%99