There are some new convert methods in C++ that convert std::string to a numeric type.
As an alternative to
str.c str() atoi(str.c str()) atoi(str.c str()
you can make use of
std::stoi std::stoi ...READ MORE
Jun 1, 2022
in C++
by
Damon
• 4,960 points
•
1,095 views