sleep(,int); function HELP :(

T

The Last Ottoman

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...
 
E

Eric Jensen

The Last Ottoman said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,135
Messages
2,570,784
Members
47,342
Latest member
KelseyK737

Latest Threads

Top