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

正文內(nèi)容

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

2025-06-10 02:13本頁(yè)面
  

【正文】 ame) 8. 類(lèi) 、 結(jié)構(gòu)體 ___9. 在創(chuàng)建對(duì)象時(shí)初始化對(duì)象的數(shù)據(jù)成員 ___10. A operator++(int) ___三、閱讀程序(共13分)a=89,b=56,c=1212/31/2009 12/31/2009 1/1/2010 1/1/2010constructing Aconstructing Bconstructing Cdestructing Cdestructing Bdestructing A四、編程題(共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。}第 13 頁(yè)供應(yīng)商—
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1