Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

delaying operation of command

Posted on 1998-07-03
3
Medium Priority
?
182 Views
Last Modified: 2010-04-01
is there a function of a similar nature to BASIC's SLEEP command... If so, what is it, how do i use it? (what #includes do i need etc)......?????
0
Comment
Question by:th_c_man
3 Comments
 
LVL 85

Expert Comment

by:ozo
ID: 1167155
#include <unistd.h>

unsigned int sleep (unsigned int seconds);
0
 

Accepted Solution

by:
dst earned 200 total points
ID: 1167156
//Following code will suspends the execution of your program for
//1000 milliseconds:

#include <winbase.h>

Sleep(1000);

0
 

Author Comment

by:th_c_man
ID: 1167157
* ozo-- i dont understand your one... more information ?

* dst-- thanks! i'll give it a try.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question