Answer the question
In order to leave comments, you need to log in
Why does this code work in Visual Studio but not in Code::Blocks?
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
s = to_string(123);
cout << s;
return 0;
}
Answer the question
In order to leave comments, you need to log in
Firstly. "Doesn't work" is usually followed by some kind of error. And it must be applied to the question.
Secondly, it is important not in which IDE, but which compiler is used.
Wangyu that they are different for you, with different support for standards.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question