struct HourMinSec
{
int h; // годин
int m; // хвилин
int s; // секунд
};
bool IsTime(int A, int B, int C)
{
if (A < 0 || A > 23) return false;
if (B < 0 || B > 59) return false;
if (C < 0 || C > 59) return false;
return true;
}
|