原创 第十四周閱讀程序一
問題 #include <iostream> using namespace std; int main() { int a=21; cout.setf(ios::showbase); cout<<"dec:"<<
原创 第十二週項目三 日期時間類的多繼承
問題及代碼 * ALL rights reserved. *文件名稱: 初學對象11 作者:李長鴻
原创 第十三週項目一 動物叫聲 2
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象13 作者:李長鴻
原创 第十三週閱項目五
代碼 #include <iostream> using namespace std; class Vehicle //交通工具 { public: virtual void run() const { cout <<
原创 第九周項目三 分數的輸入輸出符號重載
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象9 作者:李長鴻
原创 分類無果
想將之前的博客都分好類的,好像現在對於分類有些執迷,覺得比較清爽。可是。。。。。。那麼多篇,我還是算了吧,默認是一個文件夾好了。其實數據多了,分類都成了累贅。 好像找到了一個新的可以寫日記的地方。還是需要一個出口的,人間不值得一個人活着
原创 第十三週閱讀項目二
代碼 #include <iostream> using namespace std; class BASE { private: char c; public: BASE(char n):c(n) {} virt
原创 第十二週項目一 教師幹部的多繼承
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象11 作者:李長鴻
原创 第十三週閱讀項目四
#include <iostream> using namespace std; class Vehicle //交通工具 { public: void run() const { cout << "run a vehi
原创 第十三週閱讀程序一
代碼 #include<iostream> using namespace std; class A { int a; public: A():a(5){} virtual void print()const { cout<<
原创 第十三週項目二 幾何族類的純虛函數
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象13 作者:李長鴻
原创 第十三週實踐項目一 動物的叫聲
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象13 作者:李長鴻
原创 第十二週項目四 點與圓的關係
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象12 作者:李長鴻
原创 第十一週項目五 點,圓,柱類族的設計
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象11 作者:李長鴻
原创 第九周項目二 時間類的輸入輸出符的重載
問題及代碼 /* ALL rights reserved. *文件名稱: 初學對象9 作者:李長鴻