Hi
I have an exercise where I have to write a program that converts from AM to PM
here is it:
Write a program that converts from 24-hour notation to 12-hour notation. For exmple, it should co,vert 14:25 to 2:25 PM. The input is given as two integers. There should e at least three functions, one for input, one to do the conversion and one for outpu. Record the AM/PM information as a value of type char, 'A' for Am and 'P' for PM. Thus, the function for doing the conversion will have a call-by-reference formal parameter of type char to record whether it is AM or PM. (The function will have other parameters as well)
I don't want you to do this exersice for me. That's not my style.
I need some help on how to start. to be more specific, I need help with the conersion part ...
Oh yeah, and a lil' explenation on call-by-reference
The explanation in my book is very complex, I don't know if I undestood everything
I hope you guys will help