Hello everyone!
I am trying to extract some integers from a string, already written or written by the user, in which there is a character between two numbers.
The string could be a date for example, like that:
string date = "27/04/2010";
I would like to extract 27, 04 and 2010 in three integers.
I know in C language there's a useful function that let to extract whatever you want from a line, for example, ignoring specific characters.
I read that in C++ you can use stringstream, but I didn't find how to do that.
Would you help me, please?