This is my code:
for (i = 0; i < date.size(); i++)
{
str_date << date[i];
str_date >> newDay;
str_date >> newMonth;
str_date >> newYear;
apptDay.push_back(newDay);
apptMonth.push_back(intMonth);
apptYear.push_back(newYear);
}
My problem is that the first date[1] gets saved nicely, however the second round of the loop it all goes haywire. I tried clearing the stringstream each time after a loop but it does nothing..