Hey :)
I have written this code, but it seems that theres an error in it, that i can't find. When i try to compile it i get this error: Call to undefined function 'sleep' in function main().
I know it has something to do with that sleep function, because when i remove it, it works.
Someone help me plz :)
#include <iostream.h>
#include <windows.h>
int test;
int main(void)
{
cin >> test;
if(test == 123)
{
cout << "Venter nu 5 sekunder!";
sleep(5000);
cout << "Der er nu gaaet 5 sekunder!";
}
else
{
cout << "Her er noget galt :P" << endl;
}
}