K i figured it out... sorry for posting newb questions lol
system("PAUSE");
Nope, you didn;t figure it out. You added code to stop the problem. Now you have to remove the code before you sell it to customers. This is a bad idea.
The real problem is not understanding Visual Studio.NET. When tou start a program, there are two starts: Start and Start Without Debugging.
The reason for the two starts is that Visual Stusio.NET produces two kinds of builds: Debug and Release. Debug is the default.
A Debug build has code in it to operate your debugger.
Therefore, when you Start, your code just runs. Visual Studio sees that it is a Debug build abd
assumes you have set the necessary breakpoints to stop it. A system("PAUSE") is not a breakpoint. It is, what is called in the business, a hack.
However, there is Start Without Debugging. In this case, Visual Studio is beinbg told that while this is a Debug build, you are not using your debugger. In this case, Visual Studio will pause at the end of main with:
Press any key to continue...
Remove the system("PAUSE") and Start Without Debugging.