I see that you're using VC++ and that you mistakenly started a "New Console Project". This is not a good idea because it causes more issues than a "Blank Project".
Start a "Blank Project" (you may have to change which tree you are viewing on the left) and then right click the "Source Files" on the left and click "Add" -> "New Item" and add a .cpp file (you can name it anything).
Then you can start your program in there. Just this code will do: