Error:Code:#include <ctime>
void sleep(double secs);
int main()
{
sleep(5);
return 0;
}
void sleep(double secs)
{
using namespace std;
clock_t end_time = clock() + clock_t(secs*CLOCKS_PER_SEC);
while (clock() < end_time);
}
Using MSVC++ and winxpQuote:
error C2871: 'std' : does not exist or is not a namespace
Thanks