#define #include<iostream> using namespace std; #define GO #define SKIP #define TAX 0.075 #define LAST_NAME "Li" #define FIRST_NAME "Dennis" //double TAX=0.08; void main() { cout << FIRST_NAME << " " << LAST_NAME << endl; cout << "TAX = " << TAX << endl; #ifdef GO cout << "GO\n"; cout << "and GO\n"; #endif #ifndef SKIP cout << "NO SKIP\n"; cout << endl; }
#define #define now_define_add(type) \ type add(type a, type b) \ { return a+b; } \ now_define_add(int) now_define_add(double) void main() { int a=1,b=2; double r=1, s=2; cout << a / add(a,b) << endl; cout << a / add(r,s) << endl; }