2009年6月25日 星期四

LAB24 5/25 Static Mathod on Complex addition

Define a Complex class with a static method for computing complex addition. Use (2+3i)+(4+5i) in your test.


程式畫面 Class definition


Static method add使用兩個Complex物件當引數,
回傳一個Complex物件。


程式畫面 Demo

沒有留言:

張貼留言