Showing posts with label GCC. Show all posts
Showing posts with label GCC. Show all posts

Saturday, 9 April 2011

Comment usage

We realize that Code::Blocks has line numbering, text colouring, and easy text editing capabilities, therefore, edit.com is avoided. The two types of C comments are explored:

/* comments here */ is the C style comment, it lasts for as many lines as the delimiters indicate.

// C++ style comment is the C++ style comment, it lasts up until the end of that line.

Comments are used documentation and explanation purposes. Obvious beginner explanations must be skipped for real world programs. Only in educational material will you find comments being used as obvious explanations.

Friday, 8 April 2011

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.