In QT Creator 5, how do I convert Integer to string? In Visual Studio 2012 there was the command:
std::to_string(10);
But it does not work on QT. I tried:
#include <QCoreApplication>
#include <iostream>
#include <string>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
std::cout << std::to_string(10);
return a.exec();
}
The error is this:
G:\PROJETOS\CPP\untitled1\main.cpp:7: error: 'to_string' is not a member of 'std'
std::cout << std::to_string(10);
^