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)
Programming is easy, when you know how to learn it.
Friday, February 25, 2011
Batch commands
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).
First C program built (from terminal)
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
Code::Blocks setup and test
In this occasion we solve Code::Blocks 8.02 missing the compilation.
We change the mingw32-g++.exe to mingw32-gcc.exe at the linker tool place-holder. Preprocessing, compilation and linkage is done correctly this time.
We change the mingw32-g++.exe to mingw32-gcc.exe at the linker tool place-holder. Preprocessing, compilation and linkage is done correctly this time.
Code::Blocks setup
In this occasion, we set MinGW as the default compiler for the IDE, and a compilation attempt is performed.
Subscribe to:
Posts (Atom)