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

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

猜你喜欢

转载自blog.csdn.net/qq_58233310/article/details/126647807