I have problem with converting integer to string in C++ using CodeBlocks and GCC Compiler. I tried with this but it eject error:
#include <iostream>
#include <string>
int main()
{
int clicks = 0;
string code = to_string(clicks); //error: "to_string" was not declared in this scope
}
And also i tried:
#include <iostream>
#include <string>
int main()
{
int clicks = 0;
std::string code = std::to_string(clicks); // error: "to_string" is not memeber of "std"
}
Is there any solution? Pls help