[Error] in C++98 ‘myvector‘ must be initialized by constructor, not by ‘{...}

出现该问题的原因是编译器的是执行C++98标准,但运行该项目文件需要C++11标准,将其修改过来即可成功运行。这里附上devC++修改C++标准的流程图。

[Error] in C++98 ‘myvector‘ must be initialized by constructor, not by ‘{...}_第1张图片

 

你可能感兴趣的:(C++,c++)