hi.. im new to c++ and had a problem with my simple program..
Why my program cannot print the output..it just blink and dissapeared..
i double check my program and nothing seem wrong..please help me..
When you double click on the icon of an exe, it will run, and close as soon as it's finished.
If you use the command line to execute the exe, it will run, and the window will stay open even after the program is done. Then you have all the time you need to read your output.
Never used cmd before? It isn't so hard:
Start -> Run -> enter "cmd", hit enter -> enter the name of your program, hit enter