how to use delay function on dev c++

May 21, 2016 at 6:38pm
this program dont work on dev c++ , how can i use delay() function on dev ?

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
using namespace std;
int main()
{
cout<<"This c++ program will exit in 10 seconds.\n";
delay(10000);
}

May 21, 2016 at 6:41pm
#include <windows.h>

Sleep(10000);
May 21, 2016 at 6:50pm
thanks chervil
Topic archived. No new replies allowed.