一、求大神指點:美寶蓮mat1和mat3哪種好看?
MAT1 西瓜紅適合各種場合節(jié)慶日常使用
MAT3 目前最為火爆的色號,適合各種氣色。
二、和美寶蓮mat3一樣顏色的還有什么款
親愛的樓主
mat8是美寶蓮絕色持久 絨情啞光系列里面的一個色號,有些復古偏深的紅。親可以至附近的專柜試下顏色哦。
謝謝您的支持!希望意見可以被采納
三、美寶蓮輕唇膏怎么樣?哪種顏色好看自然?
我用著M33還行。最好去專柜試一下,那么多色,適合自己的才是最好看的哦。
四、美寶蓮MAT8是什么顏色?
親愛的樓主
MAT8是美寶蓮絕色持久 絨情啞光系列里面的一個色號,有些復古偏深的紅。親可以至附近的專柜試下顏色哦。
謝謝您的支持!希望意見可以被采納
五、此程序錯在哪 請高手回答
#include<iostream.h>
class Matrix
{
int RowMax,ColMax;
public:
float **Mat;
Matrix(int rm,int cm)
{
RowMax=rm;
ColMax=cm;
Mat=new float *[rm];
for(int i=0;i<rm;i++)
Mat[i]=new float[cm];
}
~Matrix(){}//析構函數(shù)
void Input()//輸入
{
cout<<請輸入矩陣:\n;
for(int i=0;i<RowMax;i++)
for(int j=0;j<ColMax;j++)
cin>>Mat[i][j];
}
int GetRowMax(){return RowMax;}//取矩陣的行數(shù)
int GetColMax(){return ColMax;} //取矩陣的列數(shù)
void GetRow(const int n)//取矩陣某一行的全部元素
{
cout<<Matrix(:,<<n<<)=\n<<'\t';
for(int i=0;i<ColMax;i++)
cout<<Mat[n-1][i]<<'\t';
cout<<'\n';
}
void GetCol(const int n)//取矩陣某一列的全部元素
{
cout<<Matrix(:,<<n<<)=\n;
for(int i=0;i<RowMax;i++)
cout<<'\t'<<Mat[i][n-1]<<'\n';
}
void Print()//顯示矩陣
{
cout<<Matrix=\n;
for(int i=0;i<RowMax;i++)
{
for(int j=0;j<ColMax;j++)
cout<<Mat[i][j]<<'\t';
cout<<'\n';
}
}
Matrix operator*(Matrix &m)//矩陣乘法;可直接寫Matrix t1(2,3),t2(3,2),t3(2,2);t3=t1*t2
{
Matrix t(RowMax,m.ColMax);
for(int i=0;i<RowMax;i++)
for(int j=0;j<m.ColMax;j++)
{
float sum=0;
for(int k=0;k<ColMax;k++)
sum+=Mat[i][k]*m.Mat[k][j];
t.Mat[i][j]=sum;
}
return t;
}
};
void main()//main函數(shù)中可自行更改自己想寫的程序段,我這邊寫出部分只是為了舉例
{
Matrix mat1(2,3),mat2(3,2),mat3(2,2);
mat1.Input();
mat2.Input();
mat3=mat1*mat2;
mat3.Print();
}
- 相關評論
- 我要評論
-