Design a method that can compute the vector inner product. You must define Vector class in the first place. Write a demo program to verify your program works. You should use constructors to initialize the two vectors.
Hint: The inner product is not a vector. It is a number (scalar).
Sample answer
由於向量不同於日期
日期的月份可以用String和數字兩種形式
向量沒有這麼多的考慮
所以裡面就只有用給初值以及non-argument來看
那我們輸出這邊一組先用non-argument
一組則是有給初值
下面再把non-argument改成給初值的那個constructor
1 則留言:
nice works on this assignment.
張貼留言