EDIT:
Oh wait, I just noticed something. There is nothing in MSV Studio's output that shows that the program was LINKED.
Creating a Windows program is done in 2 steps. The first step is to compile the .cpp file into an .obj (object) file, then you need to LINK the .obj file with library code to build an .exe file. You shouldn't have to specify the library files to link with the .obj file when you make programs with the standard C or C++ libraries (it's usually set up for you in the IDE's Linker settings).
So, to create an .exe program, you have to find the menu item that says something like 'Build Solution' or something like that. Building the solution (i.e. your project) will compile the .cpp source file and then run the linker on the newly created .obj file to create the .exe file.
You probably just clicked on 'Compile' instead.
-----------
Uh, isn't there a 'Start Without Debugging' menu item in the 'Debug' drop-down menu? (It is there for the MS Visual C++ Express edition.)
If there isn't, then there has to be some menu item somewhere that let's you execute the program. Another way to run the program is to simply use Explorer to go to the folder where you built the .exe file and simply double-click the file.
By the way, when you test console programs, you need to pause the program at the end of the program because the console window will immediately close after the program ends. Usually, you just insert code that waits for a keypress.
You can insert this code before the 'return 0;' line:
while (!_kbhit()) {}
The _kbhit() function is defined in the CONIO.H header file, so include this line above or below the "#include
" line:
#include