示例#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);
 }