I have written a code modeled after one in a textbook, but it will only run as an .exe in a command prompt window. I want it to operate directly out of the visual studio 2012 debugger console as a .cpp. The headers look the same to me, so I can't figure out what I need to change to make it open the way I desire. Is there a stock header for each, and I just can't tell them apart? Please help.