Guest User

code-trolling, doge-TMP

a guest
Dec 28th, 2013
651
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cstdio>
  2.  
  3. #define much struct
  4. #define wow template
  5. #define such class
  6. #define many unsigned int
  7. #define be typedef
  8. #define so typename
  9. #define has { enum {
  10. #define gief }
  11. #define can {
  12. #define plz ;};
  13.  
  14. much Zero has value = 0 gief plz
  15.  
  16. wow<such Win>
  17. much Doge has value = Win::value+1 gief plz
  18.  
  19. wow <many N, such Moon=Zero> much MkPeano;
  20. wow <such Moon>
  21. much MkPeano<0, Moon> can be Moon peano plz
  22. wow <many N, such Moon>
  23. much MkPeano can be so MkPeano<N-1, Doge<Moon> >::peano peano plz
  24.  
  25. wow <such Cake, such Amaze> much Add;
  26. wow <such Cake>
  27. much Add<Cake, Zero> can be Cake result plz
  28. wow <such Cake, such Amaze>
  29. much Add<Cake, Doge<Amaze> > can be so Add<Doge<Cake>, Amaze>::result result plz
  30.  
  31. main()
  32. {
  33.         printf("%d\n", MkPeano<0>::peano::value );
  34.         printf("%d\n", MkPeano<1>::peano::value );
  35.  
  36.         printf("%d\n", Add< MkPeano<14>::peano, MkPeano<17>::peano >::result::value );
  37.         printf("%d\n", Add< MkPeano<14>::peano, Add< MkPeano<3>::peano, MkPeano<5>::peano>::result >::result::value );
  38. }
  39.  
  40. // shiona
RAW Paste Data