第十周實驗報告(3)

2021-06-06 01:42:05 字數 365 閱讀 4769

#include using namespace std;

class point

friend ostream& operator << (ostream& output,point&c);

double getpointx()

double getpointy()

};point::point(double m,double n)

ostream& operator << (ostream& output,point&c)

{ output<<"點為:"<<"("<

*感想:這兩周的任務每次做的都會出現很多的錯誤,寫過的執行不出來,出現的錯誤改的少了,但還是會出現,我是很不願意貼錯誤的**。

第十周實驗報告3

include using namespace std class point 讀x座標 double gety const 讀y座標 friend ostream operator ostream const point 過載運算子 protected 受保護成員 double x,y point...

第十周實驗報告(二)

作 者 殷華哲 完成日期 2011年10月 26日 版本號 對任務及求解方法的描述部分 輸入描述 個人月收入總額 問題描述 從2011年9月1日起,我國調整個人所得稅起徵點。基數上調為3500元,超出部分按以下7級計算。1 超過0至1500 稅率3 速算扣除數0 2 超過1500元至4500元的部分...

第十周實驗報告2

程式頭部注釋開始 程式的版權和版本宣告部分 檔名稱 作 者 王引琳 完成日期 2012 年 4 月 23日 版 本 號 對任務及求解方法的描述部分 輸入描述 問題描述 程式輸出 程式頭部的注釋結束 include include include setw 設定輸出資料的寬度,使用時應 include...