Download presentation
Presentation is loading. Please wait.
Published byMarylou Daniel Modified over 6 years ago
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; }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.