getting info from strings...

i need help/suggestions on how to get month,day,year from an input of "12/31/2010"

this is part of my homework so dont tell me just get me in the right direction...

thanks for the help!
got it myself from this web page...

http://stackoverflow.com/questions/308390/convert-a-string-to-a-date-in-c

used:
sscanf(test, "%d/%d/%d", &day, &month, &year);

thanks anyways...later
Maybe you can use getline
Topic archived. No new replies allowed.