Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #define much struct
- #define wow template
- #define such class
- #define many unsigned int
- #define be typedef
- #define so typename
- #define has { enum {
- #define gief }
- #define can {
- #define plz ;};
- much Zero has value = 0 gief plz
- wow<such Win>
- much Doge has value = Win::value+1 gief plz
- wow <many N, such Moon=Zero> much MkPeano;
- wow <such Moon>
- much MkPeano<0, Moon> can be Moon peano plz
- wow <many N, such Moon>
- much MkPeano can be so MkPeano<N-1, Doge<Moon> >::peano peano plz
- wow <such Cake, such Amaze> much Add;
- wow <such Cake>
- much Add<Cake, Zero> can be Cake result plz
- wow <such Cake, such Amaze>
- much Add<Cake, Doge<Amaze> > can be so Add<Doge<Cake>, Amaze>::result result plz
- main()
- {
- printf("%d\n", MkPeano<0>::peano::value );
- printf("%d\n", MkPeano<1>::peano::value );
- printf("%d\n", Add< MkPeano<14>::peano, MkPeano<17>::peano >::result::value );
- printf("%d\n", Add< MkPeano<14>::peano, Add< MkPeano<3>::peano, MkPeano<5>::peano>::result >::result::value );
- }
- // shiona
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement