Eth*_*han 8 c++ arrays c++11 visual-studio-2013
我正在使用Visual Studios 2013,我一直收到这个错误,但我不明白为什么.
class CLI{
string commands[2] = {"create", "login"};
public:
void addCommand(), start(), getCommand(string);
};
Run Code Online (Sandbox Code Playgroud)
错误:
error C2536: 'CLI::CLI::commands': cannot specify explicit initializer for arrays
Run Code Online (Sandbox Code Playgroud)