c++ parse int

C++
#include <sstream>

int i = 123;
std::string out_string;
std::stringstream ss;
ss << i;
out_string = ss.str();atoi( str.c_str() )std::string s = "10";
int i = std::stoi(s);
Source

Also in C++: