Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Github: https://github.com/nezvers
- Youtube: https://www.youtube.com/channel/UCb4-Y0E6mmwjtawcitIAzKQ
- Twitter: https://twitter.com/NeZversStudio
- */
- #include <stdio.h>
- class MyClass{
- public:
- MyClass(){}
- int var {5};
- };
- typedef struct MyStruct{
- int var {7};
- }MyStruct;
- int main(){
- MyClass c;
- printf("%i \n", c.var);
- MyStruct s;
- printf("%i \n", s.var);
- return 0;
- };
Add Comment
Please, Sign In to add comment