91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

自己幫同學寫的,C++求解矩陣AX = B,

資源截圖

代碼片段和文件信息

/*
*File?name:?Complex.cpp
*Function?purpose:?To?complate?the?mathematical?operation?of?complex?number.
*Author?Date:2012-7-11
*Alter:?No
*/

#include?
#include?

#include?“Complex.h“

Complex::Complex(float?re?float?im)?{
????real?=?re;
????image?=?im;
}

void?Complex::InitComplex()?{
????real?=?0.0;
????image?=?0.0;
}

Complex?Complex::operator+(const?Complex?&z)?const?{
????return?Complex(real+z.realimage+z.image);
}
/*
Complex?Complex::operator-(const?Complex?&z)?const?{
????return?Complex(real-z.realimage-z.image);
}
*/
Complex?Complex::operator*(const?Complex?&z)?const?{
????return??Complex(real*z.real-image*z.image?real*z.image+image*z.real);
}
/*
Complex?Complex::operator/(const?Complex?&z)?const?{
????double?delta?=?z.real*z.real?+?z.image*z.image;
????return?Complex((real*z.real?+?image*z.image)/delta
???????????????????(z.real*image?-?real*z.image)/delta);
}
*/
float?Complex::GetRealComplex()const?{
return?real;
}

float?Complex::GetImageComplex()const?{
return?image;
}
/*
void?Complex::PrintComplex()?const?{
????if?(image?>=?0)
std::cout?< else
????????std::cout?<}*/

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1289??2012-08-09?21:22??Complex.cpp
?????文件?????????685??2012-08-05?14:42??Complex.h
?????文件???????17844??2012-06-16?09:42??ComplexMatrix.aps
?????文件????????9113??2012-08-05?23:29??ComplexMatrix.cpp
?????文件????????1589??2012-08-05?18:45??ComplexMatrix.h
?????文件????????2470??2012-06-16?09:42??ComplexMatrix.rc
?????文件?????????892??2012-05-06?11:17??ComplexMatrix.sln
?????文件????????4335??2012-07-11?22:27??ComplexMatrix.vcxproj
?????文件????????1763??2012-07-11?22:27??ComplexMatrix.vcxproj.filters
?????文件?????????143??2012-05-06?11:17??ComplexMatrix.vcxproj.user
?????目錄???????????0??2012-10-16?07:26??Debug\
?????目錄???????????0??2012-10-16?07:25??ipch\
?????目錄???????????0??2012-10-16?07:26??ipch\complexmatrix-51b46127\
?????文件????????2178??2012-08-05?23:37??main.cpp
?????文件???????18047??2012-08-05?22:15??RealMatrix.cpp
?????文件????????2684??2012-08-05?22:09??RealMatrix.h
?????文件?????????392??2012-06-16?09:42??resource.h

評論

共有 條評論