Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#define MY_MAIN int main()
- //#define FINISH return 0
- //
- //MY_MAIN
- //{
- // FINISH;
- //}
- //#include <iostream>
- //#include <iomanip>
- //#include <string>
- //using namespace std;
- //
- //#define AS_KV(x) #x << " = " << x
- //
- //int main()
- //{
- // int x = 4;
- // string t = "hello";
- // bool isTrue = false;
- //
- // //cerr << " " << t << " " << isTrue << endl;
- // cerr << boolalpha;
- // cerr << AS_KV(x) << endl
- // << AS_KV(t) << endl
- // << AS_KV(isTrue) << endl;
- //}
- //const string file = __FILE__;
- //const int line = __LINE__;
- #include <iostream>
- #include <algorithm>
- using namespace std;
- //#define MAX(a, b) (a > b ? a : b)
- #define MAX(a, b) (a > b ? a : b)
- #define SQR(x) ((x) * (x))
- int LogAndReturn(int x)
- {
- cout << "x = " << x << endl;
- return x;
- }
- //template <typename T>
- //T Sqr(T x)
- //{
- // return x * x;
- //}
- int main()
- {
- /*int x = 4;
- int y = 2;
- int z = MAX(x, y) + 5;
- cout << z;*/
- //int x = 3;
- //int z = SQR(x + 1);
- //int z = Sqr(x + 1);
- //cout << z;
- int x = LogAndReturn(3);
- int z = SQR(x++);
- cout << z;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement