hwo to convert character to integer in cpp code example Example: char* to int in cpp int x = std::stoi("42")