0

How to convert strings in cpp into an integers

converting

26th May 2018, 8:14 AM
mohammedibrahim
mohammedibrahim - avatar
2 Réponses
+ 20
std::string str = "55"; std::cout << std::stoi(str); check out this link for more 👇 http://en.cppreference.com/w/cpp/string/basic_string/stol
26th May 2018, 8:25 AM
🌛DT🌜
🌛DT🌜 - avatar