06-09-2011, 05:52 PM
1: The general idea is to get input from the user to acknowledge theyre done with the program right?
You could do something like #include <conio.h> then use getch() at the end. but i think thats windows specific. Another OS specific way is system("PAUSE");
But the easiest way would be just to get input in traditional ways. Just use scanf() but make sure the stdin buffer is flushed.
2) exit(int status);
You could do something like #include <conio.h> then use getch() at the end. but i think thats windows specific. Another OS specific way is system("PAUSE");
But the easiest way would be just to get input in traditional ways. Just use scanf() but make sure the stdin buffer is flushed.
2) exit(int status);