noob programmer questions:)

Hey guys Im new to programming and am teaching myself c++ with the visual c++.net express edition. I finally figured out how to build(compile) and run a simple program but now I have a new question.

I click on start new project. then make my source file and name it. then i input a simple program, build and run it. now i click on add new source file and change the program around a little and when i try to build and run it, it wants to link with the other source file.

How can I stop this linking together of source files in the same project so i can easily switch back and forth between the two

Do I have to start a whole new project everytime I want to make a new source file even when Im just practicing little changes and want to switch back to the original and watch it run


Answer this question

noob programmer questions:)

  • bernardoh

    The easiet way is to add another project to the same solution and just switch from within the same solution to different projects.

    Another way is to have different build configurations where you can ignore certain files at build time. But still you will need a separate configuration to every separate application.

    I am sure other folks on the forum might suggest different solutions.

    Thanks,
      Ayman Shoukry
      VC++ Team


  • noob programmer questions:)