Re: help
- From: rlb@xxxxxxxxxxxxxxxxxxxxxx (Richard Bos)
- Date: Wed, 09 May 2007 14:47:33 GMT
"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
.
- References:
- help
- From: i
- help
- Prev by Date: Re: Can this cause a program to crash?
- Next by Date: Re: structure and malloc
- Previous by thread: Re: help
- Next by thread: Re: help
- Index(es):