Zgodnie z odcinkiem 3 Mirosława Zelenta wykonałem taki programik:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
for (int i=15; i>=0; i--)
{
sleep(1000);
cout << i << endl;
}
cout << "JEBUT";
return 0;
}
Jednak przy próbie kompilacji wyskakuje błąd:
||=== Build: Debug in petle (compiler: GNU GCC Compiler) ===|
D:\programowanie\projekty\petle\main.cpp||In function 'int main()':|
D:\programowanie\projekty\petle\main.cpp|10|error: 'sleep' was not declared in this scope|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Z góry dziękuję za pomoc.