Saturday, September 20, 2008

C...learning: Chapter 5 of 8 "Preproccessor"

Nothing complex but I can't get its usance still. However I'm sure when I will programm games from the book, I will...

As I saw it its a like a way for replacing pieces of codes or value with your custom texts, but it go even further.

It gives you the ability to make choice structures with if for the pieces you,ve set.

So since its above any function or command its like having 2 different ways in the program flow, on the one hand being into a complex while statement in some function and in the meantime continuing giving several orders with the preprocessor, orders that affect other parts of the program (or the whole program) despite the fact that you re narrowed to a while statement.

2 comments:

gripap said...

Hi giorgo,

preprocessor is a kind of pre-compiler - a programme that processes your code and prepares it for input to the main compiler.

It's responsibility is to do some basic functionality; it removes multiple blank lines and spaces, copies the included code to your source file, replaces the constans with their values and maybe also resolves some addresses?

George said...

As I saw it its a like a way for replacing pieces of codes or value with your custom texts, but it go even further.

It gives you the ability to make choice structures with if for the pieces you,ve set.

So since its above any function or command its like having 2 different ways in the program flow, on the one hand being into a complex while statement in some function and in the meantime continuing giving several orders with the preprocessor, orders that affect other parts of the program (or the whole program) despite the fact that you re narrowed to a while statement.