第十四周 閱讀程式(3)

2021-07-12 06:56:00 字數 965 閱讀 1466

*檔名稱 : 

*作    者 : 田志偉 

*完成日期 : 2023年6月1號 

*版 本 號 : v1.0 

*問題描述 :閱讀程式 

*輸入描述 : 

*程式輸出 :  

*/

#include #include #include #include using namespace std;

int main()

; listid(ia, ia+4);

ostream_iteratoroutite(cout, " ");

copy(id.begin(), id.end(), outite);

cout << endl;

copy(ia+1, ia+2, front_inserter(id));

copy(id.begin(), id.end(), outite);

cout << endl;

copy(ia+3, ia+4, back_inserter(id));

copy(id.begin(), id.end(), outite);

cout << endl;

list::iterator ite = find(id.begin(), id.end(), 3);

copy(ia+0, ia+2, inserter(id, ite));

copy(id.begin(), id.end(), outite);

cout << endl;

copy(id.rbegin(), id.rend(), outite);

cout << endl;

return 0;

}

程式執行:

輔助解釋:

待後補充,暫時未知

第十四周 3 閱讀程式

問題及 煙台大學計算機與控制工程學院 檔名稱 yuedu3.cpp 作 者 閆安 完成日期 2016年6月9日 版 本 號 codeblocks 16.01 問題描述 閱讀程式3 程式輸入 無 程式輸出 運算結果 include include include include using names...

第十四周 閱讀程式 1

問題及 檔名稱 project.cpp 作 者 chenqin.完成日期 2015年6月5日 版 本 號 v1.0 問題描述 1.閱讀並執行下面的示例程式,掌握標準輸入輸出流的控制 程式輸入 略 程式輸出 略 include include using namespace std int main ...

第十四周閱讀程式(2)

問題及 include include using namespace std int main vectorintlist vector iterator listit int i intlist.push back 1 intlist.push back 5 intlist.push back ...