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

正文內(nèi)容

程序設(shè)計(jì)基礎(chǔ)實(shí)驗(yàn)報(bào)告(存儲(chǔ)版)

  

【正文】 周長(zhǎng)和面積在構(gòu)造函數(shù)中生成)和拷貝構(gòu)造函數(shù)。 cout r= r endl。 return 0。day=c。 c=a*10+b。 switch(choice) { case 0: cout 這一天是星期日endl。 case 4: cout 這一天是星期四endl。 cin abc。includeiostreamincludestringusing namespace std。class cscore:public cstudent{ double math, chinese, chem。 ()。 } return 0。由于銷售經(jīng)理(salesmanager)既是經(jīng)理又是銷售人員,兼具兩類人員的特點(diǎn),因此同時(shí)繼承manager和salesman兩個(gè)類。 float pay。public: technician(){} technician(char NAME[],int no,float TIME):employee(NAME,no) { time=TIME。}}。 grade=3。 int n=1000。 cout請(qǐng)輸入姓名endl。 cinNAME2。 cinSALE。 SSMM[sm++]=SM。N2=ma。N4=sm。 SS[N3].getS()。 TT[N1].getT()。 cinNAME4。 cinNAME3。}if(B==2){ char NAME2[20]。if(B==1){ char NAME1[20]。 int A=0,B=0。class salesmanager:public manager,public salesman{public: salesmanager(){} salesmanager(char NAME[],int no):manager(NAME,no),salesman(NAME,no) { strcpy(name,NAME)。 grade=4。 }}。includeincludeclass employee{protected: char name[20]。 月薪計(jì)算辦法是:經(jīng)理拿固定月薪8000元;技術(shù)人員按每小時(shí)100元領(lǐng)取月薪;推銷員的月薪按該推銷員當(dāng)月銷售額的4%提成;銷售經(jīng)理既拿固定月薪也領(lǐng)取銷售提成,固定月薪為5000元,銷售提成為所管轄部門當(dāng)月銷售總額的5‰。 } else { ()。 }}。 cin num name。然后,定義一個(gè)學(xué)生類的派生類,描述學(xué)生成績(jī)的CScore,添加數(shù)據(jù)成員數(shù)學(xué)、語(yǔ)文、化學(xué),添加獲取數(shù)學(xué)、語(yǔ)文和化學(xué)成績(jī)的成員函數(shù)。 int a,b,c。 case 3: cout這一天是星期三endl。 int choice=y+y/4+c/42*c+(26*m+26)/10+d1。 a=year/1000。public: void get(int a,int b,int c) { year=a。}int main(){ circle a。 cout input r endl。 ()。 } }}。 t2) { hours=+。public: void get_time() { cinhoursminutesseconds。 } } } for(i=0。i++){ if(student[i].greadj) coutstudent[i].num student[i].name student[i].gread student[i].beizhuendl。 cinstudent[i].beizhu。i40。設(shè)計(jì)程序以處理一個(gè)班級(jí)的成績(jī)信息,包括輸入、輸出、查詢(給定分?jǐn)?shù)以上或以下的學(xué)生信息)、按分?jǐn)?shù)排序等。q=qnext。}if(qnext == NULL amp。return。amp。}printf(原鏈表長(zhǎng)度為: %d\n,i+1)。}//第三行輸入欲刪除數(shù)據(jù)m。for(i=1。if(n1)return。include includestruct list{int value。 char a[20], b[20]。)。兩個(gè)字符串s1,s2由main函數(shù)輸入,strcmp函數(shù)的返回值也在main函數(shù)中輸出。a[6],amp。 printf(輸入9個(gè)整數(shù)\n)。}〈2〉 將一個(gè)3*3的矩陣轉(zhuǎn)置,用一個(gè)函數(shù)實(shí)現(xiàn)。i++) for(j=0。coutendl。 cinn。,39。,39。,39。,39。 if(b*b==4*a*c)f2(a,b)。 coutx2=x2endl。 } } if(count==0) cout沒(méi)有鞍點(diǎn)endl。jcol。jcol。const int col=3。 else if(numa[mid]) high=mid1。i++) couta[i] 。k10。 }}4 隨機(jī)輸入一組數(shù)組元素值,利用題2使一個(gè)數(shù)組有序。A39。j++) a[i][j]=39。i++){ a[i]=(i+1)*(i+2)/2。amp。 } for(i=100。 coutendl。 } return 0。i=11。 for(int i=1。float f(int x,int n){ int s=1。 t=1。}2 編程求解下列各計(jì)算式: 1) S= =1+2+3+…+100includevoid main(){ int i,n,s。 if(x0amp。 c=(n%100)/10。例如,輸入為1234時(shí),輸出結(jié)果為4,3,2,1。 coutinput a,b,c。 a=b。 cinn。 }else couterror。 } if(x+y=1amp。i=100。i++){ t=t*i。i++) s*=i。 if(f(x,i)1e6) break。j++) cout 。 for(i=1。但21,548不符合條件。amp。(i%100)/10i%10)couti 。i++) couta[i] 。 for(i=1。i5。int main(){ int i,k,temp,a[n]。i++){ if(a[i]a[i+1]){ temp=a[i]。 int low=1,high=n。 else cout不存在這個(gè)數(shù)endl。 int a[row][col]。 for(i=0。 } } for(d=0。從主函數(shù)輸入a、b、c的值。 coutx1=x2=x1endl。include iostreamusing namespace std。339
點(diǎn)擊復(fù)制文檔內(nèi)容
外語(yǔ)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1