tpoint.h
来自「这是一些c++例程」· C头文件 代码 · 共 28 行
H
28 行
// TPoint.h: interface for the TPoint class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TPOINT_H__4B3FD640_B27E_4178_BE72_2BB961FEF689__INCLUDED_)
#define AFX_TPOINT_H__4B3FD640_B27E_4178_BE72_2BB961FEF689__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "iostream.h"
class TPoint
{
public:
TPoint(int x, int y) {X=x; Y=y;}
TPoint(TPoint & p);
~TPoint() {cout<<"析构函数被调用。\n";}
int Xcoord() {return X;}
int Ycoord() {return Y;}
private:
int X, Y;
};
#endif // !defined(AFX_TPOINT_H__4B3FD640_B27E_4178_BE72_2BB961FEF689__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?