Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class shpia{
- public:
- int tot;
- class dhoma1{
- public:
- int gjatesi;
- int di(){
- return gjatesi*gjatesi;
- }
- };
- dhoma1 dh1;
- void redi(){
- cout<<dh1.di();
- }
- };
- int main()
- {
- shpia::dhoma1 k;
- k.gjatesi=10;
- shpia r;
- r.redi();
- return 0;
- }
Add Comment
Please, Sign In to add comment