Archived
1
0

Initial commit

This commit is contained in:
2025-10-24 17:19:46 +08:00
commit acc0c9e220
155 changed files with 77369 additions and 0 deletions

29
point/Program.cs Normal file
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);
}
}
}

10
point/point.csproj Normal file
View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

25
point/point.sln Normal file
View File

@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36511.14 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "point", "point.csproj", "{B9946571-BB6F-4143-9035-9CD3B943EEFB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B9946571-BB6F-4143-9035-9CD3B943EEFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B9946571-BB6F-4143-9035-9CD3B943EEFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B9946571-BB6F-4143-9035-9CD3B943EEFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B9946571-BB6F-4143-9035-9CD3B943EEFB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {07427556-98ED-47F3-AFEB-348624F46F4A}
EndGlobalSection
EndGlobal