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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.