freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

面向?qū)ο蟪绦蛟O(shè)計(jì)c資料期末試卷及標(biāo)準(zhǔn)答案a資料-資料下載頁(yè)

2025-06-23 06:51本頁(yè)面
  

【正文】 C B C C二、填空題(前14個(gè)空,每空1分,后3個(gè)空,每空2分,共20分)1. 抽象 實(shí)例 2. this指針 3. E D、F A、B、C、D、E D、F 4. virtual 5. 靜態(tài)多態(tài)性 動(dòng)態(tài)多態(tài)性 6. 抽象類(lèi) 7. friend void fun(A amp。a) 8. 繼承 組合或模板 9. 在對(duì)象被系統(tǒng)釋放之前做一些內(nèi)存清理工作 10. A(const Aamp。) 11. A operator++(int) 三、閱讀程序(13分)a=89,b=56,c=12ABCA::A() called. B::B() called. B::~B() called.A::~A() called.Call B39。s function f() Call B39。s function g() Call C39。s function g()四、編程題(共27分)(10分)Complex::Complex(){real=0。imag=0。}Complex::Complex(double r){real=r。}Complex::Complex(double r,double i){real=r。imag=i。}Complex operator+(Complex amp。c1,Complex amp。c2){ Complex c。 =+。 =+。 return c。}ostreamamp。 operator (ostreamamp。 output,Complexamp。 c){ output(+i)endl。 return output。 }istreamamp。 operator (istreamamp。 input,Complexamp。 c){ coutinput real and imaginary part of plex number:。 input。 return input。}(17分)class Circle:public Shape{public: Circle(double r){radius=r。} void set() { coutPlease input the value of the circle:endl。 cinradius。 } void show() { coutthe radius of the circle=radiusendl。 } double area() {return *radius*radius。}private: double radius。}。class Square:public Shape{public: Square(double a){thisa=a。} void set() { coutPlease input the value of a:endl。 cina。 } void show() { couta=aendl。 } double area(){return a*a。}private: double a。}。int main(){ Circle C()。 ()。 Square S()。 ()。 Shape *s[]={amp。C,amp。S}。 couttotal=total(s,2)endl。 return 0。}第 14 頁(yè)
點(diǎn)擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1