How can i have the user input a 24hr time and have seconds optional.
for example they can enter 20:40 with
1 2 3
|
int x,y;
char s;
cin>>hour>>s>>minute
|
but how can i add an OPTIONAL input with seconds.
20:40:03;
Last edited on
You can give them a menu - search for switch-case and you should get your answer