⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.cpp

📁 WinCE开发技巧与实例的配套源码
💻 CPP
字号:
// Graph.cpp: implementation of the CGraph class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Gr.h"
#include "Graph.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CGraph,CObject,0)
CGraph::CGraph()
{

}

CGraph::~CGraph()
{

}

int& CGraph::GetX()
{
	return x;
}

int& CGraph::GetY()
{
	return y;
}
CGraph& CGraph::operator=(CGraph &Gr)
{
	x = Gr.x;
	y = Gr.y;
	return (*this);
}

CArchive& operator<<(CArchive& ar,CGraph& Gr)
{
	ar<<Gr.x<<Gr.y;
	return (ar);
}

CArchive& operator>>(CArchive& ar,CGraph& Gr)
{
	ar>>Gr.x>>Gr.y;
	//	ar.ReadObject(RUNTIME_CLASS(CGraph));
	return (ar);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -