C++报错:error C3874

Posted bristlegrass

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++报错:error C3874相关的知识,希望对你有一定的参考价值。

技术图片

解决:

1、class 定义之后不要忘记分号

2、主函数写为
int main()

以上是关于C++报错:error C3874的主要内容,如果未能解决你的问题,请参考以下文章

C++运行报错:what(): std::future_error: Broken promise

C++ 编译运行报错 error: stray ‘200’ in program 解决方案

C++编译报错:error: expected constructor, destructor, or type conversion before ‘(’ token

pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

解决报错:distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required.

解决报错:distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required.