I am new to C++ . If the user enters a string with different information that is separated by a delimiter, eg #
, and I use string manipulation to extract the info into different variables, how would I check if one of the string variables contain a number? In the simplest way possible (beginner).
eg.
John#Doe#51
Name - John
Surname - doe
Age - 51
How do I make sure that the user typed a number for age?