There is a data structure Date
class Date{ int day; int month; int year; } It is necessary to overload the operator offset >> to enter the date.
So it is possible with a string, but not a flag?
void input(istream& in){ string str; in >> str; day = ((int)str[0] - 48) * 10 + ((int) str[1] - 48); month = ((int)str[3] - 48) * 10 + ((int) str[4] - 48); year = ((int)str[6] - 48) * 1000 + ((int) str[7] - 48) * 100 + ((int)str[8] - 48) * 10 + ((int)str[9] - 48); }
std::string, then go through the string character by character. - HolyBlackCat