Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TreeD
- {
- int x, y, z;
- TreeD();
- public TreeD(int i, int j, int k);
- public static TreeD operator +(TreeD op1, TreeD op2)
- {
- TreeD result = new TreeD();
- result.x = op1.x + op2.x;
- result.y = op1.y + op2.y;
- result.z = op1.z + op2.z;
- return result;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment