Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Friday, 29 April 2011

14 · Functions implementations

2 Functions are prototyped, defined and called: print_always_7() which is a function used for its side-effects and sum() which is a pure function(used for the return value)

Saturday, 9 April 2011

Line by line explanation

In this succinct tutorial, we review what has been taught before, but go little-by-little, through each line explaining in more detail the program that we have been creating.

Friday, 8 April 2011

First C program built (from terminal)

We prepare the directory tree so that we have a well sorted hierarchy. In that way we are better organized to build, whether we use the Code::Blocks IDE, or directly from the command line. Some batch commands (like tree /f ) are shown. We finally build code from the terminal so as to provide another way to build our programs. This is the Unix way of building a C source file.

Code::Blocks setup and test

We correct the options at the Code::Blocks building properties, we change the link tool place holder: instead of mingw-g++, we point to the executable mingw-gcc, which serves as a compiler, linker and preprocessor program. We test the project with which we previously had difficulty building, this time succeeding in showing no errors and outputting to the command prompt.