Posted by Al on March 16, 2005
In Reply to: Re: stuck on my assignment (very beginner) posted
by glenn on March 16, 2005
I got this to work ok, but I had to add a little to what you'd posted and amend one existing line.
You didn't quite say exactly what wasn't working for you, but I think I know. Anyway without actually saying outright...
# examine what parameters your Time2400ToAmPm function requires and how you are calling it from your main program.
# examine what actually happens to the data you enter at the first readln statement.
Incidentally I would say that 0012 should convert to 1212am.
Related Articles and Replies