Wednesday, June 6, 2012

Chapter 12: Preprocessing

The completion of chapter 11 was not good. I still do not understand how problem 5 was solved. Regardless, after looking it over and over and over, I have to move on. Now on chapter 12, it looks like Kochan wanted to give the readers a little bit of a respite. The preprocessing stuff does not appear too complex although it is pretty powerful.

I am learning about preprocessing statements that can be used prior to execution of code. There is the #import which I am used to - that is to bring in a class. There is the #define statement which is there to produce macros that can be called from code. Lastly there are #if, etc., statements which can look for environmental situations and deal with them prior to the compilation of code.

I worked through exercise 1 and 2. I could not find the files Kochan asked for for exercise 1 but later found out the answer through checking out the exercise answers. As for the 2nd exercise, I could have sworn that I created it correctly but the compiler kept giving me errors. I an still unsure why.

Tomorrow I hope to work through the rest of the chapter and if time permits, do some more review of prior topics.

No comments:

Post a Comment