예제 #1
0
파일: Program.cs 프로젝트: peter0521/C261
        private static void Main(string[] args)
        {
            Employee Peter = new Employee("Peter", "Lee");
            Peter.BaseSalary = 80000;
            Peter.Benifity = 500000;
            Console.WriteLine(Peter.Salary);

            Employee OO = new Employee();

            Console.WriteLine(OO.FirstName);

            Vcetor 小名 = new Vcetor(3, 4);
            Vcetor b = new Vcetor(1, 1);

            //小名.add(b);

            Console.WriteLine("a = {0}, {1}", 小名.X, 小名.Y);

            小名.Minus(1, 1).Minus(1, 1).add(new Vcetor(5, 5));

            Console.WriteLine("小名; = {0}, {1}", 小名.X, 小名.Y);

            Console.WriteLine(Vcetor.TotalVcetor);
        }
예제 #2
0
파일: Vcetor.cs 프로젝트: peter0521/C261
 public Vcetor Minus(Vcetor other)
 {
     this.X -= other.X;
     this.Y -= other.Y;
     return this;
 }
예제 #3
0
파일: Vcetor.cs 프로젝트: peter0521/C261
 public Vcetor add(Vcetor other)
 {
     this.X += other.X;
     this.Y += other.Y;
     return this;
 }
예제 #4
0
파일: Vcetor.cs 프로젝트: peter0521/C261
 public Vcetor Minus(Vcetor other)
 {
     this.X -= other.X;
     this.Y -= other.Y;
     return(this);
 }
예제 #5
0
파일: Vcetor.cs 프로젝트: peter0521/C261
 public Vcetor add(Vcetor other)
 {
     this.X += other.X;
     this.Y += other.Y;
     return(this);
 }