added vscode settings.json
This commit is contained in:
1 parent
c8f922d078
commit
eed3373822
2 files changed
+33
-1
No files matched your search
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"dotnet.defaultSolution": "FirstProject.sln",
|
||||||
|
"editor.fontSize": 14,
|
||||||
|
"window.zoomLevel": 1,
|
||||||
|
"terminal.integrated.fontSize": 14,
|
||||||
|
"workbench.tree.indent": 23
|
||||||
|
|
||||||
|
}
|
||||||
+25
-1
@@ -1,2 +1,26 @@
|
|||||||
// See https://aka.ms/new-console-template for more information
|
// See https://aka.ms/new-console-template for more information
|
||||||
Console.WriteLine("Hello, World!");
|
namespace Algorithms;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
class Point{
|
||||||
|
|
||||||
|
private double x;
|
||||||
|
private double y;
|
||||||
|
|
||||||
|
public Point(double x, double y){
|
||||||
|
this.x = x;
|
||||||
|
this.y = y;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double Distance(){
|
||||||
|
return Math.Sqrt(x * x + x * y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class Foo{
|
||||||
|
public static void Main(String[] args){
|
||||||
|
Point p = new Point(3, 4);
|
||||||
|
Console.WriteLine("Hello World From A Class: " + p.Distance());
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user