Fenrir112

%u041A%u043B%u0430%u0441%u0441 %u0434%u043B%u044F %u041A%u0430%u0442%u0438

Dec 9th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1.     class TreeD
  2.     {
  3.         int x, y, z;
  4.         TreeD();
  5.         public TreeD(int i, int j, int k);
  6.  
  7.         public static TreeD operator +(TreeD op1, TreeD op2)
  8.         {
  9.             TreeD result = new TreeD();
  10.             result.x = op1.x + op2.x;
  11.             result.y = op1.y + op2.y;
  12.             result.z = op1.z + op2.z;
  13.  
  14.             return result;
  15.         }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment