Archived
1
0

Initial commit

This commit is contained in:
2025-10-24 17:19:46 +08:00
Unverified
commit acc0c9e220
155 changed files with 77369 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
namespace point
{
public class point
{
public int x, y;
public point(int x, int y)
{
this.x = x;
this.y = y;
}
public double Distance(point p)
{
return Math.Sqrt((x-p.x)*(x - p.x) + (y-p.y)*(y - p.y));
}
}
class PointTest
{
static void Main()
{
point p1 = new point(0, 4);
point p2 = new point(3, 0);
double dist = p1.Distance(p2);
Console.WriteLine(dist);
}
}
}