I recently installed Microsoft Visual Studio 2010 on my computer. I wrote a C++ program and I can't find any Build/Compile/Run options in Visual Studio 2010.
Please, any one can tell me how can I compile C++ programs in MS Visual Studio 2010.
>>Microsoft decided to hide that menu on you thinking that programmers are too dumb to know how to use it.
Microsoft has a thing for this. When I finally knew where all the buttons and menus were in office, they decided that is was time for a new look and randomized them all...
Now they did the same thing with VS. I mean, someone has tested the new VS right? You would think he would have noticed: "Hey! The build button has diappeared!". But no: the most used button OF THE ENTIRE PROGRAM was sacrificed to put in even more buttons to even more functions of VS that I'll never use.... *sigh*
@AncientDragon: Yeah you can, but that's not the problem here if I saw correctly.
@Op: You need to create a Solution and a Project for that file. You cannot compile individual files like you would in say gcc.
Goto File, Create new project, it will automatically create a solution for that project. Just make an empty console project. Once that's done, right click the project, then click Add Existing Item...
Go find your file, select it and click Add.
I noticed something now, maybe it's because the code file doesn't contain head file and subroutine, should I save them in the ''C:\Documents and Settings\Muted\My Documents\Visual Studio 2010\Projects''?
You can put your code anywhere you want. When you create a new project it asks for the project name and location. I don't like that long path so I always put my source code in c:\dvlp folder. Makes it very simple to find that way.
This project is out of date
I got that occasionally too -- just let it rebuild and you can then run the program.