c++ - How can I solve error C2059: syntax error : 'string ...
2012年2月3日 - You can't initialize bu in the class declaration. Is this what you want? class Bar { public: Foo *bu; Bar() { bu = new Foo("adfds"); } };. Edit. As pointed out ...
stackoverflow.com |