There is a tool called “cl.exe” which let you compile your C++ programs on the command prompt. If you install Visual Studio, you expect using cl command. The fact is that you CAN’T, if you installed 2010 or 2012 version of Visual Studio. Instead, you should use another one called “Developer Command Prompt for VS2012“.
Look it up on the start menu and try. It might seem like this:
More information for “cl” command: http://msdn.microsoft.com/en-us/library/610ecb4h(v=vs.110).aspx