Ok, your problem is that you are returning 0.
In other words, your program works, but since your program is done windows automatically closes it.
To fix this, insert this line of code right before return 0:
Quote:
char fakeexit;
cin>>fakeexit; |
This will wait until you enter a letter before exiting your program.