i am trying to make a program that overloads the istream with which you can create an object by asking from the user to enter values and you can use cin>>name_of_the_object to create it.
My question is how can i ask the user to enter a certain hour of his choice e.g.
You must assume that the user will input for each value (hour,minutes,seconds) a two-digit value and the value will contain the two colons as seen in the example.
When the object will be created the colons will be ignored.
Thanks for your time.