示例#1
0
文件: E1.cs 项目: welvet/wC-
 private void button1_Click(object sender, EventArgs e)
 {
     try {
         a = read(textBox1, textBox2, textBox3);
         b = read(textBox4, textBox5, textBox6);
         c = new MyVector();
         print();
     } catch(Exception ex)
     {
         listBox1.Items.Add(ex.Message);
     }
 }
示例#2
0
文件: E1.cs 项目: welvet/wC-
 private MyVector read(TextBox x, TextBox y, TextBox z)
 {
     MyVector v = new MyVector();
     v.X = int.Parse(x.Text);
     v.Y = int.Parse(y.Text);
     v.Z = int.Parse(z.Text);
     return v;
 }
示例#3
0
文件: E1.cs 项目: welvet/wC-
 private void button7_Click(object sender, EventArgs e)
 {
     if (a != null && b != null) c = a + b;
     print();
 }
示例#4
0
文件: MyVector.cs 项目: welvet/wC-
 public static int Comparison(MyVector a, MyVector b)
 {
     return a.R().CompareTo(b.R());
 }