string into int cpp code example
Example 1: change int to string cpp
#include <string>
std::string s = std::to_string(42);
Example 2: c++ string to int
atoi( str.c_str() )
#include <string>
std::string s = std::to_string(42);
atoi( str.c_str() )