Hello,
I am hoping to get some code for the following problem
I need to verify that a user input the time in the following format:
cout<<"please enter the start time(hh:mm:ss): ";
cin>>stime;
//Verify user input time correctly
cout<<"please enter the end time(hh:mm:ss): ";
cin>>etime;
//Verify user input time correctly
**Then I convert the start time and end time to seconds and return elapsed seconds (dont need help on this part)**
So basically I am asking for code either using tokens or otherwise that could verify user input.
I am an old C/assembly programmer that doesnt know c++ very well, and I best understand from seeing code.
If there is a better way to collect time from user, that is also welcome.
Thanks a ton everyone who helps!!!
Daniel