I have the following data in a c++ string
John Doe 01.01.1970
I need to extract the date and time from it into int variables. I tried it li
As far as I can tell, atoi does what you need.
atoi
"Parses the C string str interpreting its content as an integral number, which is returned as an int value."
http://www.cplusplus.com/reference/clibrary/cstdlib/atoi/