#include #include #include #include #include #include #include #include #include #ifdef __cplusplus #include #include #include #include #include #include #include #endif #define COINFLIP() (rand() % 2) struct hey { int a, b, c; }; enum kodes { EFOO, EBAR, EBAZ, }; class Klass { public: int ID; }; struct hey jude = {0x1, 0x2, 0x3}; const char foo[] = "hello world"; int x = 10; template class Foo { public: void print() { std::cout << x << std::endl; } }; template class Bar { public: void print() { std::cout << x << std::endl; } }; template class Baz { public: void print() { std::cout << x << std::endl; } }; template class Quux { public: void print() { std::cout << x << std::endl; } }; template class Zam { public: void print() { std::cout << "(null)" << std::endl; } }; int main(int argc, char const *argv[]) { Foo foo_int; Foo foo_char; Foo foo_struct; Foo foo_const_struct; Foo foo_enum; Foo foo_pointer; Foo foo_member_pointer; Bar<3> bar; Baz<'d'> baz; Quux quux; Zam zam; foo_int.print(); foo_char.print(); foo_struct.print(); foo_const_struct.print(); foo_enum.print(); foo_pointer.print(); foo_member_pointer.print(); bar.print(); baz.print(); quux.print(); zam.print(); return 0; }