Web Page - http://www.cs.tau.ac.il/~efif/courses/Software1_Summer_03
#include <filename.h> |
#include "filename.h" |
extern int getline(char [], int); |
#include "myio.h" |
#define name text |
#undef name |
char line[100]; ... getline(line, 100); |
#define MAXLINE 100 char line[MAXLINE]; ... getline(line, MAXLINE); |
#define MAXLINE 100; /* WRONG */ |
char line[MAXLINE]; |
char line[100;]; /* WRONG */ |
#define A 2 #define B 3 #define C A + B int x = C * 2; |
int x = A + B * 2; |
int x = 2 + 3 * 2; |
#define C (A + B) |
#ifdef name program text #else more program text #endif |
#if 0 program text #endif |
cl.exe -Dname |
#ifdef unix unlink(filename); #else remove(filename); #endif |
#define unix |
#ifdef DEBUG printf("x is %d\n", x); #endif |