I can't seem to work the function delay(); with devc++ it's just i do delay(500); but it says i need to define int delay() and it still doesn't work can you write out a program that might work?
I can't seem to work the function delay(); with devc++ it's just i do delay(500); but it says i need to define int delay() and it still doesn't work can you write out a program that might work?
I use Dev-C++ and I have never heard of the function delay. I searched the include files and I didn't find it either, so Dev-C++ must not come with the delay function. Since it can't find it in a header file, it tells you that you need to define it. For something similar to delay use Sleep() defined in winbase.h, but you can just include windows.h for convenience.
i cant seem to get #include <iostream.h> to work on dev-c++
I have dev c++, iostream.h works just fine.
to knight:
Dev-C++ is a windows compiler, and delay() is normally defined in a dos compiler in dos.h. Though Dev-C++ has dos.h, it's a windows version of it.