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

正文內(nèi)容

最新面向?qū)ο蟪绦蛟O(shè)計實驗冊(完整版)

2025-07-31 03:01上一頁面

下一頁面
  

【正文】 sing namespace std。實驗項目名稱: C++基礎(chǔ)程序設(shè)計 實驗學(xué)時: 3 同組學(xué)生姓名: 無 實驗地點: A107 實驗日期: 實驗成績: 批改教師: 吳剛 批改時間: 一、實驗?zāi)康暮鸵?C++ C++2005以上版本的特點。填寫注意事項(1)細(xì)致觀察,及時、準(zhǔn)確、如實記錄。紙張一律采用A4的紙張。實驗報告批改說明實驗報告的批改要及時、認(rèn)真、仔細(xì),一律用紅色筆批改。 coutWele to C++!endl。 coutaendl。 coutraendl。}運行結(jié)果及結(jié)果分析:,實現(xiàn)九九乘法表的2中格式輸出,格式如下:(1) 1 2 3 4 5 6 7 8 9 1 1 2 3 4 5 6 7 8 9 2 2 4 6 8 10 12 14 16 18 3 3 6 j++) { couti*j\t。 } coutendl。 coutcfb2(i,j)endl。 } return 0。 } return 0。 return 0。 na=strlen(a)。實驗項目名稱: 類與對象 實驗學(xué)時: 3 同組學(xué)生姓名: 無 實驗地點: A107 實驗日期: 實驗成績: 批改教師: 吳剛 批改時間: 一、實驗?zāi)康暮鸵?、定義方法以及類與對象的簡單用法。三、實驗內(nèi)容及步驟。 void dead()。 return 0。 ()。 cout2棧的消亡!endl。i++) ()。void pop()。else{cout出棧數(shù)據(jù):。cout輸入兩個你要輸入的數(shù)據(jù)N和M:。()。 int month。 class Person{private: int num。 strcpy(ID,id)。 cinnum。\039。 } ~Person() { cout num號人員已經(jīng)錄入endl。程序詢問每個雇員本周已經(jīng)工作的小時數(shù),然后顯示應(yīng)得的工資。 } while(time 0 amp。main(){ Payroll p[10]。程序:includeiostreamincludestringusing namespace std。 sumpeople++。 for(i=1。class Point{ double x,y。 d=sqrt(()*()+()*())。}運行結(jié)果:,其成員數(shù)據(jù)包括編號id,姓名name和年齡age,均聲明為private訪問屬性。public: Employee() { id = 1。 } void Print(Employee amp。 system(pause)。二、實驗設(shè)備和環(huán)境。class Derive:public Base{public: Derive() {cout執(zhí)行派生類構(gòu)造函數(shù)endl。class Derive:public Base {public:Derive(){cout”派生類構(gòu)造函數(shù)”endl。 }protected: int x,y,z。class Circle:public Object{public: void getData() { coutcircle:(only radius=x)endl。 Circle c。編寫程序輸出者三口之家一天從事的活動:先是父親出去開車,然后母親出去工作(唱歌),母親下班后去做兩個小時的小工。class mother{ void dootherJob(){coutMother is doing other job!。}}。 ()。程序:include iostreamusing namespace std。} ~Pig(){cout調(diào)用pig析構(gòu)函數(shù)endl。 PigDog pd。三、實驗內(nèi)容及步驟。}}。public:Point(Point amp。}}。class Complex{double r,v。Complex operator /(Complex a)。b){double ar=()。Complex c(ar+r,av)。()。public:Complex(Complex amp。Complex operator/(Complex a)。}Complex operator *(Complex a,Complex b){double ar=()。cout成員函數(shù)實現(xiàn)與復(fù)數(shù)的除法:。}Complex operator (Complex a,Complex b){Complex c(,)。()。()。三、實驗內(nèi)容及步驟,有成員函數(shù)Reason(),用來顯示異常的類型,在子函數(shù)中觸發(fā)異常,在主程序中處理異常,觀察程序的執(zhí)行流程。}}int Div(int x,int y){if(y==0)throw y。}}。endl。endl。} 運行結(jié)果:四、實驗體會本次的異常學(xué)習(xí)熟悉了C++的異常處理,是對知識的拓寬。cout()endl。}int main(){cout在main函數(shù)中。~Demo()。} 運行結(jié)果:,在此基礎(chǔ)上派生一個OutOfMemory類響應(yīng)內(nèi)存不足,一個RangeError類響應(yīng)輸入的數(shù)不在指定范圍內(nèi),實現(xiàn)并測試這幾個類。int Div(int x,int y)。()。()。return c。}Complex Complex::operator +(Complex a){Complex c(+r,+v)。double br=()。Complex operator+(double a)。v=。()。return c。double br=()。}double fetv(){return v。c){r=。Point p(1,2)。_y=。Area b(3,4,1)。程序:include iostreamdefine PI using namespace std。實驗項目名稱: 多態(tài)性 實驗學(xué)時: 3 同組學(xué)生姓名: 無 實驗地點: A107 實驗日期: 實驗成績: 批改教師: 吳剛 批改時間: 一、實驗?zāi)康暮鸵?、?yīng)用等。class PigDog:public Dog,public Pig{public: PigDog(){cout調(diào)用pigdog構(gòu)造函數(shù)endl。} ~Mammal(){cout調(diào)用mammal析構(gòu)函數(shù)endl。 ()。 father f。} friend main()。晚上,小孩和父親一起修電視機(jī)。 coutThe results:()endl。 } double Area() { double s=x*x*。class Triangle:public Object{public: void getData() { couttriangle:。}};void
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1