How to convert a string to a number ? How to convert the last bit of a string to a number ?
String to number , You can write it by hand , There is ready-made for trouble stoi Such as function .
The last one is simpler , Direct subtraction '0' That's it