Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- typedef struct CStruct
- {
- int cStructInt=1;
- };
- typedef struct CStruct2 : CStruct
- {
- inline int returnCStructInt()
- {
- return cStructInt;
- }
- };
- int main()
- {
- CStruct2 cst2;
- cout << "cStructInt=" << cst2.returnCStructInt() << '\n';
- //system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement