解决C++Random.h(随机数函数库)编译不通过问题

 时间:2024-10-14 14:08:24

、最近小编在编程的时候,发现报出了一个错误。追根到底,竟是随机数函数库Random.h(Random)内发生了错误。内容如下:c:\program files\dev-cpp\mi荏鱿胫协ngw64\lib\gcc\x86_64-w64-mingw32\4.7.1\include\c++\bits\c++0x_warning.h [Error] #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

Dev-C++

1、打开DEV-C++界面

2、点击“工具”菜单>>"编译选项"按钮英文版:"Tools"菜单>>"Compiler Options"

3、把"编译时加入以下命令"打钩英文版:"Add the following commands when calling the compiliner"

4、在"编译时加入以下命令(英文版:Add the following commands when calling t茑霁酌绡he compiliner)"下面的编辑框里输入:-std=c++11

5、点击"确定(英文版:OK)"

Linux(G++)

1、在编译命令后加入:-std=c++11;

  • 四级如何自己算分
  • 百词斩怎么估分
  • 大学生如何查看自己的培养方案
  • 四级赋分制怎么算
  • 知到智慧树互动分怎么能拿满分
  • 热门搜索
    美国怡口净水器怎么样 通用挽联大全 发色大全 作文材料大全 北京语言大学怎么样 螃蟹怎么保存才新鲜 粽子图片大全 手工diy制作大全 幼儿诗歌大全100首 包皮长怎么戴避孕套