From: Michal M. <mol...@se...> - 2010-10-22 19:27:21
|
Dne Pá 22. října 2010 06:27:17 VINAY HARIBAL napsal(a): > I'm not able to use the delay() function in my programs.I tried > including the preprocessor directive "dos.h".Do tell me if i need to > use any other preprocessor directive.I've posted the errors which i > get when i try to compile for your reference. > 1-->C:\Dev-Cpp\bin\duration.cpp [Warning] In function `int main()': > 2-->24 C:\Dev-Cpp\bin\duration.cpp `delay' undeclared (first use this > function). 3-->24 C:\Dev-Cpp\bin\duration.cpp (Each undeclared identifier > is > reported only) . Dev-C++ is Windows compiler, not DOS compiler. If you want to wait under Windows, use the windows.h Sleep Function -- see documentation: http://msdn.microsoft.com/en-us/library/ms686298%28VS.85%29.aspx > and also i would request you to explain me the "compile delay" option > which is given in the compiler options citing from the Dev-C++ help: "Compile delay This option is present to provide a delay before compiling. Normally, you will not use this. If make complains of the timestamp being invalid, try specifying a delay here." > ,is this related to my first > part of the question? No. |