using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
CPoint c1 = new CPoint();
CPoint c2 = new CPoint();
CPoint c3 = new CPoint();
c1.setpoint(1, 2);
c2.setpoint(2,4 );
c3.setpoint(1, 4);
Cline m = new Cline();
Console.WriteLine("两点之间距离为: {0}", m.distence(c1, c2));
Cline m1 = new Cline();
m.set_length(c3, c2);
m1.set_length(c1, c3);
CRect CR = new CRect();
Console.WriteLine("矩形的周长为: {0}",CR.perimeter(m,m1));
Console.WriteLine("矩形的面积为: {0}", CR.area(m, m1));
Console.ReadKey();
}
}
class CPoint
{
private int x