-
Blink Blink Blink...
Hey peoples i just want to know on where i can get a better compiler but used for newbies too. im using the dev-c++ but everytime i create a new project in DOS and put all the codes and stuff in there and compile then run i press ENTER the DOS "blink" and closes. am i doing it right??? someone please help or do it need a better compiler ?
-
Include conio.h and place getch(); at the end of the main function. If you don't have conio, place fgets(); or some other input function instead.
-
Vis your question, Magos has supplied you with a solution, read the FAQ for others, hint, your program is running so fast, it is exiting before you have had a chance to read it.
Vis your sig, vBulletin does not hold some global database of contributors. If you have been banned at other sites, you probably broke their rules. Break ours, and you may be banned, don't break them, you won't - it's that easy.
The rules...
http://cboard.cprogramming.com/annou...p?s=&forumid=3
-
Hmm..
Add this header-file on your program:
Code:
#include <stdlib.h>
And at the end of the main function, of course, before 'return', add this line:
-
And if you're already using the iostream library for I/O,