Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define a struct Cls_2 {\
- Cls_2(char c, double d, int i);\
- char c;\
- double d;\
- int i;\
- };\
- char &get_c(Cls &cls) {\
- return ((Cls_2 *) &cls)->c;\
- }\
- \
- double &get_d(Cls &cls) {\
- return ((Cls_2 *) &cls)->d;\
- }\
- \
- int &get_i(Cls &cls) {\
- return ((Cls_2 *) &cls)->i;\
- }
- a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement