Advertisement
Felanpro

define functions with preprocessors

Jul 5th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #define print(x) {std::cout << x << std::endl;}
  4.  
  5. using namespace std;
  6.  
  7. main()
  8. {
  9.     print("Hello World!");
  10.  
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement