The firstCprogram.c is changed. We define variables and extract(by evaluation of the rvalues) and output to the standard output the values held in them. The "equals"(=) sign is not to be confused with mathematical equality but it is an assignment being done from the rvalue token to the lvalue token. A very succinct explanation of printf is present. 3 programs are used for editing the file, the old edit.exe from the 16-bit era, notepad.exe, the classic ASCII encoded text editor, and Code:Blocks (where the keyword highlight feature is present)
Friday, February 25, 2011
We familiarize ourselves with certain batch commands like cd (change directory), md (move directory), cd .. (move one level backwards in the directory tree), del (delete files) and so on. We manually set our environment so that the files are in the correct place (01 folder inside the MinGW_exercises folder).
We modify the command line window(cmd.exe) properties so that the width allows more space to be viewed without cropping the line. Quick Edit Mode checkbox is selected. We change and create some directory names so that the projects compiled with Code::Blocks are separate from those compiled directly at the command line. The firstCprogram.c is passed as the first argument to the GCC builder at the command line.
Monday, February 14, 2011
In this occasion, we set MinGW as the default compiler for the IDE, and a compilation attempt is performed.