conio.h is present in the MinGW version of the GCC headers, so Dev-C++ on Windows should find getch() ok (Dev-C++ does work with the GCC toolset, yes?).
Have you swapped platform as well as IDE?
Andy
P.S. Apparently conio.h is not Borlands fault. It originated with Latice C, the first ever DOS compiler (which Microsoft later bought and rebadged as (pre-Visual) Microsoft C.) Borland did, however, implement a slicker version. http://en.wikipedia.org/wiki/Conio.h
Please (oh, pretty please) use [code][/code] tags.
You are using Conio.h which is not supported in Dev-C++. It works in Turbo because Turbo was made by Borland who made Conio.h.
I have Dev-C++ installed on my computer (I like old things) and it does indeed come with conio.h.
conio.h is present in the MinGW version of the GCC headers, so Dev-C++ on Windows should find getch() ok (Dev-C++ does work with the GCC toolset, yes?).
Yes, Dev-C++ uses the GCC toolset and it does indeed have the getch (); function.
Now we need to get back to the issue, some response to cipp's question would be nice, what problems are you having? I tried compiling it and was told that malloc (size_t); was getting too many arguments from your post. From stdlib.h (from the MinGW pakage with Dev-C++):