tpoint.cpp
来自「这是一些c++例程」· C++ 代码 · 共 19 行
CPP
19 行
// TPoint.cpp: implementation of the TPoint class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TPoint.h"
#include "iostream.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
TPoint::TPoint(TPoint & p)
{
X = p.X;
Y = p.Y;
cout<<"拷贝初始化构造函数被调用。\n";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?