Solved

delaying operation of command

Posted on 1998-07-03
3
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 84

Expert Comment

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

unsigned int sleep (unsigned int seconds);
0
 

Accepted Solution

by:
dst earned 50 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

735 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