input time from console C++
friend istream &operator>>( istream &input, Time &right ) //input in hh:mm format
{
input >> right.hour; // input hours
input.ignore(); // skip :
input >>right.min; // input minute part
return input;
}