**:
/*
*檔名稱:main.cpp;
*作 者:岳成豔 2023年6月9號;
*版 本 號:vc++6.0;
**問題描述:。
*程式輸入:略;
*程式輸出:略;
*/#include#include#includeusing namespace std;
class cstudent
cstudent(int nsid,int na)
//複製建構函式
cstudent(const cstudent& ob) };
int main()
{ mapmapstudent;
mapstudent["zhangsan"]=cstudent(100012,22);
mapstudent["lisi"]=cstudent(100085,21);
mapstudent["wangwu"]=cstudent(100093,23);
cout<
執行測試:
知識點總結:
運用stl,複製建構函式。
第15周閱讀程式4
include include include include include using namespace std class myadd public binary function int main vectormy 5 transform a,a 5,my.begin bind2nd my...
第15周閱讀程式(4)
問題及 檔名稱 test.cpp 完成日期 2016年6月14日 版本號 v1.0 問題描述 閱讀程式。輸入描述 程式輸出 include include include include include using namespace std class myadd public binary fu...
閱讀程式(6)
all right reserved.檔名稱 test.cpp 作 者 韓雙志 完成日期 2016年6月20日 版本號 v1.0 問題描述 輸入描述 輸出描述 include include include include include using namespace std int main c...