Write and test a class Vector2D to define operators for addition, subtraction, scalar product, input and output, and inner product of two 2d vectors.
Drawa UMLdiagram first编写和测试vector 2d定义加法,减法,数量积,输入和输出操作符一类,和两个二维向量的内积。
Write and test a class Vector2D to define operators for addition, subtraction, scalar product, input and output, and inner product of two 2d vectors.
Drawa UMLdiagram first编写和测试vector 2d定义加法,减法,数量积,输入和输出操作符一类,和两个二维向量的内积。
应用推荐