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

  • 大小: 9.55MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-08
  • 語言: C/C++
  • 標(biāo)簽: Visual??C++??SNMP??源代碼??

資源簡介

《Visual C++開發(fā)基于SNMP網(wǎng)絡(luò)管理軟件》書上的源代碼,是學(xué)習(xí)簡單網(wǎng)絡(luò)管理協(xié)議,開發(fā)網(wǎng)絡(luò)管理軟件必備書籍。是研究生學(xué)習(xí)的好教材,對論文寫作有很大作用。歡迎大家下載和學(xué)習(xí)。

資源截圖

代碼片段和文件信息

//?LineChart.cpp:?implementation?of?the?CLineChart?class.
//
//////////////////////////////////////////////////////////////////////

#include?“stdafx.h“
#include?“Rsh.h“
#include?“LineChart.h“

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

//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLineChart::CLineChart(CSize?csint?row)
{
Useage=false;
StartPos=0;
Cross=false;
oldX=-1;
oldY=-1;
?title=“My?Chart“;
?xLegend=“xLegend“;
?yLegend=“yLegend“;
?tFont.CreatePointFont(70“楷體_GB2132“NULL);
?interval=36;
?Number=0;
?xAverage=0;
?yAverage=0;
?x_Max=0;
?y_Max=0;
?x_Min=1000000;
?y_Min=1000000;
?Count=row;
?ChartSize=cs;
?srand((unsigned)time(NULL));
?LineData?ld;
?for?(int?i=0;i<=Count;i++)
?{
?ld.x=rand()%100;
?ld.y=rand()%50;
?ld.xTime=““;
?????ld.show=false;
?ArrayData.Add(ld);
?}
?yMax=100;
?Temp_yMax=0;
}


CLineChart::~CLineChart()
{
}
BEGIN_MESSAGE_MAP(CLineChart?CStatic)
//{{AFX_MSG_MAP(CLineChart)
ON_WM_PAINT()
ON_WM_MOUSEMOVE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CLineChart?message?handlers
void?CLineChart::AddData(unsigned?long??x1unsigned?long??y1
?CString?ttint?uxint?uyint?indexbool?tf)
{
unsigned?long?temp;
if?(x1>y1)
temp=x1;
else
temp=y1;
while?(yMax yMax+=100;
if?(x1>x_Max)?
x_Max=x1;
if?(x1 x_Min=x1;
if?(y1>y_Max)?
y_Max=y1;
if?(y1 y_Min=y1;
if?(index<=Count)
{
ArrayData[index].x=x1;
????????ArrayData[index].y=y1;
????????ArrayData[index].xTime=tt;
????ArrayData[index].xUse=ux;
????? ArrayData[index].yUse=uy;
???? ArrayData[index].show=tf;
}
else
{
???????LineData?ld;
?????ld.x=x1;
?ld.y=y1;
?ld.xTime=tt;
?????ld.show=tf;
?ld.xUse=ux;
?ld.yUse=uy;
?ArrayData.Add(ld);
} ?
}
//增加數(shù)據(jù)項到隊列末尾,原來每個項依次前移一項;增加的
//數(shù)據(jù)如果超出Y軸目前最大值,則最大值以100為單位遞增,直
//到大于輸入的數(shù)據(jù)為止;最后重繪圖表;
void?CLineChart::Append(unsigned?long?x1unsigned?long?y1CString?ttint?uxint?uy)
{???
unsigned?long?temp;
if?(x1>y1)
temp=x1;
else
temp=y1;
while?(yMax yMax+=100;
if?(x1>x_Max)?
x_Max=x1;
if?(x1 x_Min=x1;
if?(y1>y_Max)?
y_Max=y1;
if?(y1 y_Min=y1;
for(int?i=0;i {
????????ArrayData[i]=ArrayData[i+1];
}
ArrayData[Count].x=x1;
ArrayData[Count].y=y1;
ArrayData[Count].xTime=tt;
ArrayData[Count].xUse=ux;
ArrayData[Count].yUse=uy;
ArrayData[Count].show=false;
if?((Number?%?interval)==0)
????ArrayData[Count].show=true;
Number+=1;
xAverage=(x1+xAverage*(Number-1))/Number;
????yAverage=(y1+yAverage*(Number-1))/Number;
this->Invalidate();
}
//初始化圖表數(shù)據(jù);
void?CLineChart::Init()
{???
yMax=100;
for(int?i=0;i {
??????ArrayData[i].x=0;
????

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

?????文件??????10172??2005-12-24?11:26??snmp光盤資料\第10章\LineChart.cpp

?????文件???????1888??2005-12-23?17:06??snmp光盤資料\第10章\LineChart.h

?????文件???????6268??2006-01-06?15:13??snmp光盤資料\第10章\MyStringArray.cpp

?????文件???????1166??2006-01-06?15:13??snmp光盤資料\第10章\MyStringArray.h

?????文件???????3525??2005-12-23?15:24??snmp光盤資料\第10章\ReadMe.txt

?????文件?????311296??2006-01-12?17:13??snmp光盤資料\第10章\Release\Rsh.exe

?????文件???????1078??2005-12-23?15:24??snmp光盤資料\第10章\res\Rsh.ico

?????文件????????395??2005-12-23?15:24??snmp光盤資料\第10章\res\Rsh.rc2

?????文件????????766??1995-01-01?00:00??snmp光盤資料\第10章\res\switch.ico

?????文件???????1095??2005-12-23?19:58??snmp光盤資料\第10章\resource.h

?????文件??????21336??2005-12-27?11:05??snmp光盤資料\第10章\Rsh.aps

?????文件???????1679??2006-07-05?13:31??snmp光盤資料\第10章\Rsh.clw

?????文件???????2021??2005-12-23?15:24??snmp光盤資料\第10章\Rsh.cpp

?????文件???????4534??2005-12-27?14:44??snmp光盤資料\第10章\Rsh.dsp

?????文件????????529??2005-12-23?15:24??snmp光盤資料\第10章\Rsh.dsw

?????文件???????1291??2005-12-23?15:24??snmp光盤資料\第10章\Rsh.h

?????文件??????91136??2006-07-05?14:01??snmp光盤資料\第10章\Rsh.ncb

?????文件??????56832??2006-07-05?14:01??snmp光盤資料\第10章\Rsh.opt

?????文件???????1933??2006-01-12?17:13??snmp光盤資料\第10章\Rsh.plg

?????文件???????6680??2005-12-27?11:05??snmp光盤資料\第10章\Rsh.rc

?????文件???????9705??2006-06-26?12:11??snmp光盤資料\第10章\RshDlg.cpp

?????文件???????1804??2005-12-24?11:02??snmp光盤資料\第10章\RshDlg.h

?????文件????????205??2005-12-23?15:24??snmp光盤資料\第10章\StdAfx.cpp

?????文件???????1054??2005-12-23?15:24??snmp光盤資料\第10章\StdAfx.h

?????文件????2633784??2005-12-27?10:34??snmp光盤資料\第11章\Debug\NetMap.exe

?????文件????????998??2005-11-27?21:23??snmp光盤資料\第11章\Input.cpp

?????文件???????1189??2005-11-27?21:22??snmp光盤資料\第11章\Input.h

?????文件??????14114??2005-12-27?10:11??snmp光盤資料\第11章\MainFrm.cpp

?????文件???????2930??2005-12-04?11:53??snmp光盤資料\第11章\MainFrm.h

?????文件???????2428??2006-01-07?14:58??snmp光盤資料\第11章\MapView.cpp

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

評論

共有 條評論