given this code sgment:
hours<12 ?time=am :time=pm;
this is just a code segment from a program that I wrote.
how can I display the am or pm with cout.
I tried declaring them as char:
but all I get is is the a or p.