Advertisement
Guest User

C++ solution

a guest
Nov 4th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #define XYZZY
  3.  
  4. struct X
  5. {
  6.     X(const char* c) {}
  7. };
  8.  
  9. void print(X)
  10. {
  11.     std::cout << "void print(const char* c);\n"
  12.               << "#ifdef XYZZY\n"
  13.               << "void print(const char* c) { std::cout << c; };\n"
  14.               << "#endif\n";
  15. }
  16.  
  17. int main()
  18. {
  19.     print("71E17-65E47-AD4D2-984F8\n");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement