News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Different variations of a Program

Started by street sign, May 09, 2017, 04:05:49 AM

Previous topic - Next topic

street sign

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

BlueHazzard

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...