Hello,
I have a problem related to the execution window (the Dos prompt window). When I run a program after compiling it, the Dos window appears for a milisecond and then it's gone. I have tried what is said in FAQ which is :
// Q: My window keeps closing, how do I change that ?
// A: You can do it this way:
// #include <stdio.h>
// int main(int argc, char **argv)
// {
// printf ("Press ENTER to continue.\n");
// getchar (); /* wait for input */
// return 0;
// }
// Or this way:
// #include <stdlib.h>
// int main(int argc, char **argv)
// {
// system ("pause"); /* execute M$-DOS' pause command */
// return 0;
// }
But I got error messages with "printf" or with "system".
Can you help me?
---------------------------------
Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
|