Guest User

Untitled

a guest
Nov 18th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class shpia{
  6. public:
  7. int tot;
  8.  
  9. class dhoma1{
  10. public:
  11. int gjatesi;
  12. int di(){
  13. return gjatesi*gjatesi;
  14. }
  15.  
  16. };
  17.  
  18. dhoma1 dh1;
  19. void redi(){
  20. cout<<dh1.di();
  21. }
  22. };
  23. int main()
  24. {
  25. shpia::dhoma1 k;
  26. k.gjatesi=10;
  27. shpia r;
  28. r.redi();
  29. return 0;
  30. }
Add Comment
Please, Sign In to add comment