Generation

generate functionSat, 12 Nov 2022

parse a pair of integers from a string

std::string s = "1 2"; std::string::size_type sz; int a = std::stoi (s, &sz); int b = std::stoi (s.substr(sz));

Want to kickstart your project?Use the new AI Studio to create your code