Skip to main content

All Questions

4 votes
3 answers
180 views

Constructor for a Time object

I am trying to write a constructor method that takes dd, hh, mm and ...
AliTeo's user avatar
  • 139
5 votes
2 answers
22k views

Converting a 12 hour time string to a 24 hour time string

Input - Standard input - HH:MM:SS[AM|PM] format. Examples: 12:00:00AM 12:00:00PM 01:00:10AM 01:00:10PM The program reads one line per instance. Output - military format (24 hour format): 00:00:00 ...
Anubhav's user avatar
  • 181