to_string not declared in scope

前端 未结 6 893
[愿得一人]
[愿得一人] 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:47

    //Try this if you can't use -std=c++11:-
    int number=55;
    char tempStr[32] = {0};
    sprintf(tempStr, "%d", number);
    

提交回复
热议问题