graphseries.cpp
来自「一个简单的学生学籍管理工具。vc编写。 有喜欢的可以批评指正^_^」· C++ 代码 · 共 58 行
CPP
58 行
// GraphSeries.cpp : implementation file
//
#include "stdafx.h"
//#include "testdraw.h"
#include "GraphSeries.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGraphSeries
CGraphSeries::CGraphSeries()
{
for(int i = 0; i < 10; i++)
dataValue[i] = 0;
}
CGraphSeries::~CGraphSeries()
{
}
BEGIN_MESSAGE_MAP(CGraphSeries, CStatic)
//{{AFX_MSG_MAP(CGraphSeries)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGraphSeries message handlers
void CGraphSeries::SetLabel(CString label)
{
seriesLabel = label;
}
void CGraphSeries::SetData(int group, int dValue)
{
dataValue[group] = dValue;
}
CString CGraphSeries::GetLabel()
{
return seriesLabel;
}
int CGraphSeries::GetData(int group)
{
return dataValue[group];
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?