In this problem, you are asked to implement a class Vector
that represents a vector in 2D space. The class should support the following operations:
+
)*
)^
)Using these operations, you should also be able to calculate the following:
Warning: You should use C++11 or later versions, or else you will get Compile Error! reason
The first line contains two integers \(x_1, y_1\), which represents the first vector \(v_1\).
The second line contains two integers \(x_2, y_2\), which represents the second vector \(v_2\).
\(x_1 \quad y_1\)
\(x_2 \quad y_2\)
As main function in "14274.cpp"