c++ - How can I solve error C2059: syntax error : 'string ...

c++ - How can I solve error C2059: syntax error : 'string ...

瀏覽:1431
日期:2026-04-17
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 ......看更多