busterkika Posted May 26, 2008 Report Share Posted May 26, 2008 PPl... há forma de saber qual é o sistema operativo em que o programa C esta a correr? Necessitava de saber isto por causa do system("clear") ou system("cls") entre outro comandos incompativeis Assim era uma forma de tornar o programa compativel com win32 e unix Link to comment Share on other sites More sharing options...
Rui Carlos Posted May 26, 2008 Report Share Posted May 26, 2008 Penso que isso pode ser feito usando macros. http://predef.sourceforge.net/preos.html Rui Carlos Gonçalves Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now