Author Topic: Different variations of a Program  (Read 2302 times)

street sign

  • Guest
Different variations of a Program
« on: May 09, 2017, 04:05:49 am »
Hello all,
    I am new to programming and code blocks, I am just starting out learning C, using "The C Programming Language" and they go over different variations of programs using small "tweaks".  It is possible and if so, can I keep all this different "variations" in the same workspace?  I hope to easily move between them for reference in the future, if needed and I like to see the difference in the programs, it helps me understand.  If you can't tell, I am slightly OCD.  I am running version 13.12 on ubuntu, and building my programs in the "Console Application" option if that matters.

Thanks
Street

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Different variations of a Program
« Reply #1 on: May 09, 2017, 11:17:10 am »
The easiest workflow to achieve this is to use a project for every exercise you make in the same workspace and then save the workspace. For this you only need ?3? clicks...
A more complex solution would be to create multiple targets in one project and only select the right c file to compile the specific target. For this you will need ?10? clicks...