?? graph.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 + -