-->
当前位置:首页 > 题库

PROGRAMMING:Three dimensional vector operation

Luz5年前 (2021-05-10)题库376
Design a three-dimensional vector class to realize vector addition, subtraction, multiplication and division of vector and scalar. Then add the following code to complete:
![ Capture. JPG] (~ / 13101fa3-18ec-4ee9-8510-ffc750ea0daf. JPG)
###Input example:
```in
```
###Output example:
```out
(4, 6, 8)
(4, 6, 8)
(-2, -2, -2)
(3, 6, 9)
(1.5, 2.0, 2.5)
(1, 2, 2)
```







answer:If there is no answer, please comment