第16周 閱讀程式 ( 2)

2021-07-13 18:10:52 字數 489 閱讀 4721

程式功能:

建立乙個a.txt和b.txt 檔案,將乙個字元寫進a.txt,在b.txt中輸出。

(2)

#include #include #includeusing namespace std;

int main()

readfile.close();

writefile.close();

cout << "finish!" << endl;

return 0;

}

程式功能:

當檔案沒有達到末尾的時候輸入乙個字串,在另乙個檔案中輸出字串的長度,輸出換行符。

第11周閱讀程式(2)

問題及 檔名稱 zwj.cpp 作 者 張晴晴 完成日期 2016年5月10日 版 本 號 v1.0 問題描述 閱讀程式,寫出執行結果 輸入描述 程式輸出 include using namespace std class a a int i void print cout執行結果 步驟分析 主函式...

第14周閱讀程式(2)

問題及 檔名稱 test.cpp 完成日期 2016年6月8日 版本號 v1.0 問題描述 閱讀程式 2 輸入描述 程式輸出 include include 標頭檔案 向量容器 using namespace std int main vectorintlist 定義的乙個int的向量容器 vect...

第11周閱讀程式(3)

問題及 檔名稱 zwj.cpp 作 者 張晴晴 完成日期 2016年5月10日 版 本 號 v1.0 問題描述 閱讀程式,寫出執行結果 輸入描述 程式輸出 include using namespace std class a public a char s cout執行結果 學習心得 主函式中定義...