B
Bit Byte
I want to parse a string (actually a date [always in the format
'YYYYMMDD') into integer values like this:
void parseDate(const string&sdate, int& day, int& mon, int &year)
{
istringstream iss(sdate) ;
....
}
I can do this easily in C (using atoi etc), but i wanted not too sure
how in C++.
'YYYYMMDD') into integer values like this:
void parseDate(const string&sdate, int& day, int& mon, int &year)
{
istringstream iss(sdate) ;
....
}
I can do this easily in C (using atoi etc), but i wanted not too sure
how in C++.