to_string not declared in scope

前端 未结 6 876
[愿得一人]
[愿得一人] 2020-12-15 05:16

I am trying to make the to_string(NUMBER) function work in my Ubuntu computer for weeks but it never ever works in the QT environment or anywhere else. My code

6条回答
  •  天命终不由人
    2020-12-15 05:57

    You need to make some changes in the compiler. In Dev C++ Compiler: 1. Go to compiler settings/compiler Options. 2. Click on General Tab 3. Check the checkbox (Add the following commands when calling the compiler. 4. write -std=c++11 5. click Ok

提交回复
热议问题