Well, I\'ve been using Dev-C++ for a while for learning the language [c++], and some stuff wouldn\'t work properly, like global and local variables. Then I decided to downlo
You can execute the compiler from the command line. First you will need to open a command prompt will all the VC++ environment variables set. Then you just invoke "cl" with the options you want.
If you want to stay within the IDE, then you can set up an "External Tool" to compile it for you:
Now, to use this, you must invoke Visual Studio with the correct environment variables set. One way is to launch a Visual Studio Command Prompt and then enter devenv.exe. Then open the file you want to compile and select the new tool under the Tools menu.
I typically make one project for temporary work and just re-use it. If you have a really desperate need to keep around your learning files, then just make one project, add new source files, and exclude all the old ones from the build. There's no need to make a new project for every temporary or learning project.
For simple program, you can easily compile from command line,
Star menu->Visual Studio->Visual Studio Tools->Command Line
cd c:\..\your program path
cl.exe test.cpp