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

正文內(nèi)容

程序設(shè)計(jì)基礎(chǔ)實(shí)驗(yàn)報(bào)告-免費(fèi)閱讀

  

【正文】 } } for(int N4=0。 } } for(int N2=0。 salesmanager SM(NAME4,n++)。 cout請(qǐng)輸入銷(xiāo)售額endl。 cout請(qǐng)輸入姓名endl。 float TIME。 int te=0,sa=0,ma=0,sm=0。 NO=no。 } void getM(){cout月薪為payendl。class technician:public employee{private: float time。 int grade。根據(jù)上述需求,設(shè)計(jì)一個(gè)基類(lèi)employee,然后派生出technician(技術(shù)人員)類(lèi)、manager(經(jīng)理)類(lèi)和salesman(推銷(xiāo)員)類(lèi)。 cout sum_score= 。int main(){ cscore a1, a2。 }}。最后,主函數(shù)中,創(chuàng)建2個(gè)CScore類(lèi)對(duì)象,輸出總分最大同學(xué)的姓名、學(xué)號(hào)和總成績(jī)。 cout 輸入年,月,日:。 break。 choice=choice%7。 b=(yeara*1000)/100。month=b。 circle b(a)。 cin r。}2. 定義一個(gè)圓類(lèi)(Circle),屬性為半徑(radius)、圓周長(zhǎng)和面積,操作為輸入半徑并計(jì)算周長(zhǎng)、面積,輸出半徑、周長(zhǎng)和面積。void main(){ Time one, two, three。 minutes=+。 } void display_time() { couthours39。i40。 } for(i=0。 } for(i=0。i++){ cout輸入學(xué)號(hào)。includestruct student{ int num。}printf(刪除后的鏈表長(zhǎng)度為 %d\n,i+1)。amp。}p=q=tmp=head。 headnext != NULL){head=headnext。//第二行依次輸出原始單鏈表的數(shù)據(jù);printf(鏈表數(shù)據(jù)為:\n)。printf(請(qǐng)輸入要?jiǎng)h除的數(shù)值:)。in。//第二行依次輸入n個(gè)整數(shù);printf(請(qǐng)輸入節(jié)點(diǎn)的值:)。struct list *next。 cout input tow strings endl。 i++) { if (a[i]b[i]) { j = 1。includeiostreamusing namespace std。a[7],amp。 scanf(%d%d%d%d%d%d%d%d%d,amp。在主函數(shù)中用scanf輸入以下矩陣元素:{2,4,6,8,10,12,14,16,18}。j3。}實(shí)驗(yàn)五〈1〉 輸入三個(gè)整數(shù),按由小到大的順序輸出,然后將程序改為:輸入三個(gè)字符串,按由小到大的順序輸出。 while(n0) { r[i]=n%16。E39。A39。639。239。 if(b*b4*a*c)f3(a)。}void f2(float x,float y){ float x1,x2。 }實(shí)驗(yàn)四(2)編寫(xiě)程序?qū)崿F(xiàn)下列問(wèn)題的求解。j++){ if(a[b][c]=a[i][j]){ b=i。j++) scanf(%d,amp。void main(){ int i=0,j=0,d。 else low=mid+1。 coutendl。k++){ for(i=0。然后隨機(jī)輸入一個(gè)數(shù),用折半查找法在數(shù)組中查找,如在數(shù)組中,則輸出元素在數(shù)組中的位置;如不在,則輸出提示include iostreamusing namespace std。+i+j*(j+1)/2。A39。 } for(i=0。(i%1000)/100(i%100)/10amp。i1000。 }}5 編程求出10000以?xún)?nèi)的所有符合如下條件的數(shù):其高位數(shù)字小于低位數(shù)字。}4 編程產(chǎn)生出1到10以?xún)?nèi)的所有數(shù)對(duì)i,j并輸出,其中ij。i++){ for(int j=1。i+=2。 for(int i=1。 for(i=1。 s=0。amp。 d=n%10。includevoid main(){ int a,b,c,d,n。 cinabc。 temp=a。 coutinput number n。 coutdcbaendl。y0){ z=exp(x+y)。 for(i=1。i=7。i=n。){ y+=pow(1,i+1)*f(x,i)。j=11i。includevoid main(){ int i,j。如12,238,3578等。i++){ if(i/100(i%100)/10amp。amp。i10。+j。 } for(i=0。const int n=10。i10。 int mid。 } if(num==a[mid]) cout所查找的數(shù)在第mid+1個(gè)位置endl。 int b,c,count=0。a[i][j])。 c=j。1 求方程ax2+bx+c=0的根,用三個(gè)函數(shù)分別求b24ac大于0、等于0和小于0時(shí)的根,并輸出結(jié)果。 x1=x2=(y)/(2*x)。}3 編寫(xiě)一個(gè)將十進(jìn)制整數(shù)轉(zhuǎn)換為十六進(jìn)制字符串的函數(shù)。,39。,39。,39。,39。 i++。includevoid main(){ int i,j,temp,a[3]。j++){ if(a[j]a[j+1]){ temp=a[j]。將數(shù)組名作為函數(shù)參數(shù)。a[0],amp。a[8])。int strcmp(char a[], char b[]){ int i, j。 break。 cin a b。}。p=(struct list*)malloc(sizeof(struct list))。i++){p=(struct list*)malloc(sizeof(struct list))。scanf(%d,amp。q=head。free(p)。while(qnext){q=qnext。 qvalue==m){pnext =NULL。//第四行依次輸出完成刪除后的單鏈表數(shù)據(jù);printf(刪除后的鏈表為:\n)。 char name[8]。 cinstudent[i].num。i40。i40。i++) coutstudent[i].num student[i].name student[i].gread student[i].beizhuendl。:39。 seconds=+。 cout\nEnter the first time(hours minutes seconds):。要求定義構(gòu)造函數(shù)(以半徑為參數(shù),缺省值為0,
點(diǎn)擊復(fù)制文檔內(nèi)容
外語(yǔ)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1