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

正文內(nèi)容

面向?qū)ο蟪绦蛟O(shè)計(jì)課程設(shè)計(jì)報(bào)告-預(yù)覽頁(yè)

 

【正文】 //設(shè)置成友元的求矩陣的逆 private: int m,n。再對(duì)系統(tǒng)進(jìn)行加、減、乘等一系列操作。 int i,j。 for(j=0。i++,q++) cin*q。 double *q。j。 }}測(cè)試輸入、輸出顯示情況、減、乘運(yùn)算模塊設(shè)計(jì)程序代碼如下:Matrix Matrix::operator+(Matrix amp。 =m。 for(i=0。j++) [i*+j]=p[i*+j]+[i*+j]。b) //減法重載函數(shù){ if(m!=||n!=) {cout\n行或列不匹配。 =n。i++) for(int j=0。 return c。 =n。 } int i,j,k。j。 Out(c)。 = 1。 iindexm。 } for (int k=indexn+1。 m。 } for (int k=indexn+1。}double Det(Matrix amp。 } if ( == 1) { det = [0]。 i++) { if (i % 2 == 0) det += [i * ] * Det(Adjunct(a, i, 0))。a) //求矩陣的逆 { Matrix temp 。 double det = Det(a)。 } for (int i=0。j++) { if ((i+j) % 2 == 0) [i*+j]=Det(Adjunct(a,i,j))/det。按照正常的顯示是先輸出行的。 //無(wú)參構(gòu)造函數(shù) friend void In(Matrix amp。 //設(shè)置為友元的輸出函數(shù) Matrix operator +(Matrix amp。 //減法重載函數(shù) Matrix operator *(Matrix amp。 //轉(zhuǎn)置函數(shù) friend Matrix Adjunct(Matrix amp。 //設(shè)置成友元的遞歸求行列式 friend Matrix Inv(Matrix amp。 //矩陣的基址}。}void In(Matrix amp。 =new Datatype[*]。j。}void Out(Matrix amp。 for(i=0。j++,q++){ cout*q39。b){ //加法重載函數(shù) if(m!=||n!=) {cout\n行或列不匹配。 =n。im。 Out(c)。 exit(0)。 =new double[m*n]。jn。}Matrix Matrix::operator *(Matrix amp。 =new double[m*n]。 for(i=0。j++) for([i*+j]=0,k=0。 return c。 = 1。 i++) { for (int j=0。 k。 m++) { for (int j=0。 k。a) //遞歸求行列式{ double det = 0。 return det。 else det = [i * ] * Det(Adjunct(a, i, 0))。 =。 //矩陣的逆 = 伴隨矩陣 / 行列式 if (det == 0) //如果行列式的值為0,則沒有逆 { cout此矩陣沒有逆!endl。 i。 else [i*+j]=Det(Adjunct(a,i,j))/det。 cout對(duì)于a矩陣。 cout對(duì)于b矩陣。 couta+b=endl。 c=ab。 coutendl。 coutDet(b)endl。 coutendl。 Out(c
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1