错误:' to_string'在Code :: Blocks 16.01中未在此范围内声明

时间:2016-02-18 13:34:37

标签: c++ c++11 codeblocks

我正在使用Code :: Blocks 16.01并运行以下代码会产生错误:' to_string'未在此范围内声明

#include <iostream>
#include <string>

using namespace std;

int main() {
    long int i = 10000000;
    cout << to_string(i);
    return 0;
}

注意:已经勾选了#34;让g ++遵循C ++ 11 ISO C ++语言标准&#34;在编译器标志中。

0 个答案:

没有答案