Dev-C++ 5.11不支持C++ 11编译

1.问题

Dev-C++ 不支持 C++ 11新特性。例如在使用编译如下这段代码时,就会报错。

#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
#include<iostream>

using namespace std;

int main(){
	int i = 2;
	string res = to_string(i);
	cout << "res = "<< res;
}

报错如下:
Dev-C++ 5.11不支持C++ 11编译

2. 修正办法

step 1:
Dev-C++ 5.11不支持C++ 11编译
step 2:
Dev-C++ 5.11不支持C++ 11编译
得到的执行结果如下:
Dev-C++ 5.11不支持C++ 11编译

相关文章:

  • 2021-05-31
  • 2021-06-19
  • 2021-11-17
  • 2021-07-05
  • 2021-10-23
  • 2022-01-06
  • 2021-12-26
  • 2021-07-29
猜你喜欢
  • 2022-01-16
  • 2021-10-18
  • 2021-11-29
  • 2022-01-12
  • 2021-04-23
  • 2021-12-06
  • 2021-05-08
相关资源
相似解决方案