Question: C++:Programming: Write a recursive function to_number that forms the integer sum of all digit characters in a string. For example, the result of to_number(3ac4) would
C++:Programming: Write a recursive function to_number that forms the integer sum of all digit characters in a string. For example, the result of to_number("3ac4") would be 7. Hint: If next is a digit character ('0' through '9'), function is_digit(next) in header will return true.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
