Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Struct
- {
- int age = 19;
- int returnAge()
- {
- return this->age;
- }
- };
- void main()
- {
- Struct X;
- cout << X.returnAge() << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement