Can I compile and debug (run) a single C++ file in Visual Studio 2012? (How to avoid creating too many projects) -


i'm learning c++ out of book , using visual studio 2012. in order follow book's exercises, need make multiple .cpp files main() function inside them. is there way can compile/debug programs without making new project every single time?

for example, if write simple "hello, world!" file , decide make else simple, can avoid making new project each simple program? there way use visual studio 2012 compiler? love if have inside single project compile whichever individual file wanted , see run.

thanks help.

to compile make cpp file. , use cl command line tool, check msdn link: compile native c++ program command line has example cl /ehsc simple.cpp


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -