Lecture 11

27 August 98

Click here to start

Table of Contents

Real World Applications: Computing Resistance

Sample Input/Output

Main Program

Print_codes function

Decode_char function

The Preprocessor

The CC command

#include ...

#define ...

Some macro definitions in Math.h

Parameterized Macros

Putting as many parentheses as possible in macros

Parameterized Macros

Macros Versus Functions

Conditional, Miscellaneous

Conditional, Miscellaneous

Reading/Home Working

Author: NUS

Email: cscwjs@nus.edu.sg

Home Page: http://www.cz3.nus.edu.sg/~wangjs/CZ1102/cz1102.html

Download presentation source