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

  • 大小: 1.58MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-25
  • 語言: C/C++
  • 標簽:

資源簡介

矩陣運算程序矩陣運算程序矩陣運算程序矩陣運算程序

資源截圖

代碼片段和文件信息

//?ArrayMatrix.cpp:?implementation?of?the?CArrayMatrix?class.
//
//////////////////////////////////////////////////////////////////////

#include?“stdafx.h“
#include?“Matrix.h“
#include?“ArrayMatrix.h“

#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CArrayMatrix?Cobject?1)



CArrayMatrix::CArrayMatrix()
{
m_Name=_T(““);
m_wCon=0;
m_wRow=0;
}

CArrayMatrix::~CArrayMatrix()
{

}

void?CArrayMatrix::Serialize(CArchive?&ar)
{
Cobject::Serialize(ar);
????if(ar.IsStoring())
{
ar< }
????else
????{
ar>>m_Name>>m_wRow>>m_wCon;
}
m_Array.Serialize(ar);
}

CArrayMatrix::CArrayMatrix(const?CArrayMatrix?&?m)
{
m_Name=m.m_Name;
m_wRow=m.m_wRow;
m_wCon=m.m_wCon;
m_Array.SetSize(m_wRow*m_wCon);
for(int?i=0;i {
m_Array[i]=m.m_Array[i];
}
}

CArrayMatrix?CArrayMatrix::operator?+(const?CArrayMatrix?&?m)
{
CArrayMatrix?temp;
temp.m_wCon=m_wCon;
temp.m_wRow=m_wRow;
temp.m_Array.SetSize(m_wCon*m_wRow);
for(int?i=0;i {
temp.m_Array[i]=m_Array[i]+m.m_Array[i];
}
return?temp;
}



BOOL?CArrayMatrix::ProcessInput(CString?DataString)
{
//獲得等號右邊的字符串
CString?RightString=DataString;
if(!SetStringName(RightStringm_Name))?return?FALSE; //獲得變量名稱,存儲到m_Name中去
ProcString(RightString);
int?tipnum=0;
int?len=lstrlen(RightString);
if(len==0)?return?FALSE;//表示矩陣沒有數據
if(!InputRow(RightString))?return?FALSE;
CString?*?SPtBuffer=NULL;//指向矩陣每行字符串CString的指針
if(!InputCon(RightStringSPtBuffer))?return?FALSE;
m_Array.SetSize(m_wCon*m_wRow);
for(int?i=0;i<(int)m_wRow;i++)
{
for(int?j=0;j<(int)m_wCon;j++)
{
float?temp=0.0;
if(!ConvertToNum(SPtBuffer[i]jtemp))?return?FALSE;
m_Array[i*m_wCon+j]=temp;
}
}
if(SPtBuffer!=NULL)?delete?[]SPtBuffer;
return?true;
}

void?CArrayMatrix::ProcStringBlank(CString?&?sHead)
{
int?len=lstrlen(sHead);
if(len==0)?return;
CString?m_temp=sHead;
sHead.GetBufferSetLength(len+1);
int?j=0;
for(int?i=0;i {
if(m_temp[i]==TCHAR(‘?‘))?
{
if((i+1)!=len&&m_temp[i+1]==TCHAR(‘?‘))?continue;
else?
{
sHead.SetAt(jsHead[i]);
j++;
}
}
else?{sHead.SetAt(jm_temp[i]);j++;}
}
sHead.SetAt(jTCHAR(‘\0‘));
j=lstrlen(sHead);
sHead.GetBufferSetLength(j);
sHead.Replace(“?\n““\n“);
sHead.Replace(“\n?““\n“);
}

void?CArrayMatrix::ProcStringComma(CString?&?sHead)
{
sHead.Replace(‘‘‘?‘);
sHead.Replace(‘;‘‘\n‘);
}

void?CArrayMatrix::ProcStringEnter(CString?&?sHead)
{
CString?m_temp=sHead;
int?len=lstrlen(sHead);
sHead.GetBufferSetLength(len+1);
int?j=0;
for(int?i=0;i {
if(m_temp[i]==TCHAR(‘\n‘))?
{
if((i+1)

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????12129??2001-05-31?23:33??矩陣運算程序\ArrayMatrix.cpp

?????文件???????2161??2002-06-08?20:38??矩陣運算程序\ArrayMatrix.h

?????文件???????2511??2009-10-30?19:49??矩陣運算程序\MainFrm.cpp

?????文件???????1637??2002-11-06?08:43??矩陣運算程序\MainFrm.h

?????文件??????27876??2009-10-30?19:48??矩陣運算程序\Matrix.aps

?????文件???????2202??2009-10-30?19:50??矩陣運算程序\Matrix.clw

?????文件???????4260??2001-05-17?18:14??矩陣運算程序\Matrix.cpp

?????文件???????4938??2001-05-28?00:12??矩陣運算程序\Matrix.dsp

?????文件????????537??2001-05-17?18:14??矩陣運算程序\Matrix.dsw

?????文件???????1356??2001-05-17?18:14??矩陣運算程序\Matrix.h

?????文件?????148480??2009-10-30?19:50??矩陣運算程序\Matrix.ncb

?????文件??????58880??2009-10-30?19:50??矩陣運算程序\Matrix.opt

?????文件????????248??2009-10-30?19:49??矩陣運算程序\Matrix.plg

?????文件??????10908??2002-11-06?08:43??矩陣運算程序\Matrix.rc

?????文件????????680??2001-05-18?19:24??矩陣運算程序\Matrix.reg

?????文件??????15995??2001-05-31?23:03??矩陣運算程序\MatrixDoc.cpp

?????文件???????2215??2001-05-30?16:40??矩陣運算程序\MatrixDoc.h

?????文件???????3297??2001-05-30?17:28??矩陣運算程序\MatrixView.cpp

?????文件???????1663??2001-05-28?14:15??矩陣運算程序\MatrixView.h

?????文件??????42656??2001-05-17?18:16??矩陣運算程序\MFM1992

?????文件???????4601??2001-05-17?18:14??矩陣運算程序\ReadMe.txt

?????文件??????43136??2009-10-30?19:49??矩陣運算程序\Release\ArrayMatrix.obj

?????文件??????12786??2009-10-30?19:49??矩陣運算程序\Release\MainFrm.obj

?????文件??????53248??2009-10-30?19:49??矩陣運算程序\Release\Matrix.exe

?????文件??????16267??2009-10-30?19:49??矩陣運算程序\Release\Matrix.obj

?????文件????5692484??2009-10-30?19:49??矩陣運算程序\Release\Matrix.pch

?????文件???????6948??2009-10-30?19:49??矩陣運算程序\Release\Matrix.res

?????文件??????49103??2009-10-30?19:49??矩陣運算程序\Release\MatrixDoc.obj

?????文件??????14838??2009-10-30?19:49??矩陣運算程序\Release\MatrixView.obj

?????文件????????750??2009-10-30?19:49??矩陣運算程序\Release\StdAfx.obj

............此處省略18個文件信息

評論

共有 條評論