Generation

generate functionThu, 26 Jan 2023

how to convert the last character on a string into an int

int convert(string s){ return (int)s[s.length() - 1]; }

Questions about programming?Chat with your personal AI assistant