using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class point
{
public int x, y;
public point()
{
x = 0;
y = 0;
}
public point(int x, int y)
{
this.x = x;
this.y = y;
}
public override string ToString()
{
return (string.Format("({0},{1})", x, y));
}
}
class Program
{
static void Main(string[] args)
{
point p1 = new point();
point p2 = new point(5, 3);
[color=#FF0000] Console.WriteLine("P1点对应的坐标为{0}", p1);[/color]
Console.ReadKey();
}
}
}