473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

sleep(,int); function HELP :(

Hi, I'm a student in Turkey...

I used sleep() function in my second project, and I included
<windows.h>, <time.h> and <iostream>...
then, the function worked properly...

After a while, my third project is announced,
I needed to use sleep() function, I included the SAME header files
again, but when I use
sleep() function, it does not find the function decleration...

the error is like

sleep , undeclared identifier...
what is the problem ??
I couldn't understand...

May 23 '06 #1
2 8207

"The Last Ottoman" <ot************@gmail.com> skrev i en meddelelse
news:11**********************@i40g2000cwc.googlegr oups.com...
Hi, I'm a student in Turkey...

I used sleep() function in my second project, and I included
<windows.h>, <time.h> and <iostream>...
then, the function worked properly...

After a while, my third project is announced,
I needed to use sleep() function, I included the SAME header files
again, but when I use
sleep() function, it does not find the function decleration...

the error is like

sleep , undeclared identifier...
what is the problem ??
I couldn't understand...


try with a capital S :p

Sleep(1000); // windows
sleep(1000); // linux

//eric

May 23 '06 #2
Oh my God :)

it is really funny :) :)

I never give attention to case...

Thank you

May 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ryan Spencer | last post by:
Hello Everyone, I want to have a row of periods, separated by small, say, .5 second intervals between each other. Thus, for example, making it have the appearance of a progress "bar". ...
6
by: M B HONG 20 | last post by:
Hi all - I'm trying to emulate a sleep function in javascript. I know of this method for example: window.setTimeout("function1();", 500); However, I was wondering if there was a way to...
6
by: Angus Comber | last post by:
Hello I am testing and think I have a timing issue. On Windows I used sleep function to wait a while. Is there a C Runtime equivalent? I need to port some code to Linux. Angus
10
by: Alfonso Morra | last post by:
Hi, I need help witht he sleep function as follows. I need to be write som code to do the ff: 1. creates a new thread 2. (in the new thread), Sleep for x milliseconds 3. (in the new thread),...
3
by: Gabi | last post by:
Hi all, is there any system call on vb that is similler to "Sleep(xxx)" on c++ if so can you give me its format thanks. Thanks
2
by: Gary Wessle | last post by:
Hi is there a some equivalent method in boost or others which suits c++, instead of using system ( "sleep 5s" ) to send the system to sleep for 5 seconds. thanks
11
by: Nazwa | last post by:
Hello How can I make my own Sleep function, without using while() and comparing time passed? I tried to find something useful on google, but I wasn't able to find anything useful. ---- Nazwa
1
by: vini7 | last post by:
hi I am using sleep function in a C++ program. when I compile this program using g++.I am getting followong error: g++ samspec.cpp samspecCount.cpp -o samspec samspecCount.cpp: In function...
3
by: benhania | last post by:
hello i have a problem with the thread.sleep function - when i make a commend (in windowns form app) and after it i use the sleep function the thread first pause and only then execute all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.