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

📄 point.cs

📁 画图的作用 以及其他的类似图型转换的
💻 CS
字号:
using System;

namespace chapter3
{
	/// <summary>
	/// Point 的摘要说明。
	/// </summary>
	public class Point
	{
		private int x,y;

		public Point(int x,int y)
		{
			this.x=x;
			this.y=y;
		}
		public static Point operator ++(Point p)
		{
			p.x++;
			p.y++;
			return p;
		}
		public void Display()
		{
			
			Console.WriteLine("Point.x={0},Point.y={1}",this.x,this.y);
		}
		public static Point operator + (Point p1,Point p2)
		{
			Point p= new Point(0,0);
			p.x=p1.x+p2.x;
			p.y=p1.y+p2.y;
			return p;
		}


	}
}

⌨️ 快捷键说明

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