help guys, this code tells me that the sleep identifier is not found. has anyone got an idea on how to resolve this?

Recommended Answers

You forgot to post the code.

Jump to Post

All 3 Replies

You forgot to post the code.

Sleep is not part of the standard. Your system may or may not include it. If you're using windows, try

#include <windows.h>

and use Sleep with a capital 'S'.

If you're using a unixlike

#include <unistd.h>

and use usleep.

thanks moschop. it wqas because of the capital s

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.