21_2.cpp

来自「这是一些c++例程」· C++ 代码 · 共 18 行

CPP
18
字号
// 21_2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "TPoint.h"
#include "iostream.h"

int main(int argc, char* argv[])
{
	TPoint P1(5, 7);
	TPoint P2(P1);
	
	cout<<"P2 = "<<P2.Xcoord()<<","<<P2.Ycoord()<<endl;

	return 0;
}

⌨️ 快捷键说明

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