Re: help



"osmium" <r124c4u102@xxxxxxxxxxx> wrote:

"i" writes:

I want to display two answers .When i press the Enter key first
answer should be displayed and few seconds later the second answer
should be displayed. How can i do it?

You can create short delays by using the clock() function, see <time.h>.

You can, but you shouldn't. If you do this on a multi-user system, you
risk getting banned by the sysadmin for hogging the CPU. A much better
solution is to use a system-specific function for this more or less
system-specific problem; ask in a newsgroup that deals with the OS
and/or compiler you're using, and see also (as usual!) the FAQ:
<http://c-faq.com/osdep/subsecond.html>.

Richard
.