C++ std::string questionable usage
I am new to C++. In order to solve an online puzzle, I needed to extract numbers from strings and keep only the first and last number. For example 4nfhfbk56khfkvh => 456 => 46.
So I made the function given below.
I am new to C++. In order to solve an online puzzle, I needed to extract numbers from strings and keep only the first and last number. For example 4nfhfbk56khfkvh => 456 => 46.
So I made the function given below.