G B <
g...@gb.com> writes:
> Who can provide a two or three liner code in C or C++ to create a
Cross posting between C and C++ can lead to some... disagreements. I
read this in comp.lang.c first and my answer pertains to C.
For the time part, lookup the functions time, localtime and strftime in
whatever C reference you like to use.
For the output part, lookup fputs (or printf), fflush and the meaning of
the special character denoted by the escape sequence \r.
Enough hints? (I'm avoiding spoilers because I'm guessing this is some
sort of homework or assignment, and if not, at least some challenge
you've set for yourself.)
--
Ben.