Presentation is loading. Please wait.

Presentation is loading. Please wait.

#define #include<iostream> using namespace std; #define GO

Similar presentations


Presentation on theme: "#define #include<iostream> using namespace std; #define GO"— Presentation transcript:

1 #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; }

2 #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; }


Download ppt "#define #include<iostream> using namespace std; #define GO"

Similar presentations


Ads by Google