解决C++Random.h(随机数函数库)编译不通过问题
1、打开DEV-C++界面
2、点击“工具”菜趴薪单>>"编译选五贪项"按钮
英文版:"Tools"海墨码菜单>>"Compiler Options"
3、把"编译时加入以下命令"打钩
英文版:"Add the following commands when calling the compiliner"
4、在"编译时加入以下命令(英文版:Add the following commands when calling the compiliner)"下面的编辑框里输入:
-std=c++11
5、点击"确定(英文版:OK)"
1、在编译命令后加入:-std=c++11;