I'm at the point where I want to look a bit more into conditional compilation, and i'm at a bit of a wall here. For some reason Dev C++ doesn't like this:
Does anyone know the solution to make this work, whats wrong with my code and what/why does yours work if you post it?Code:#define GETKEYPRESS getch(); #ifdef (_MSC_VER) \ #include <iostream.h> #elif \ #include <iostream> #endif #include <conio.h>
Thanks in advanced.
Note:If you can't see, i'm trying to make it compile so that if it's a microsoft compiler it will include <iostream.h> and if it's not it will include the standardized <iostream>.