Пример #1
0
 public void AnsOutput(Define define, Form2 form2)//答案输出
 {
     for (int i = 0; i < define.subnum; i++)
     {
         form2.lb_Ans.Items.Add(define.ans[i]);
     }
 }
Пример #2
0
 public void DivideOutput(Define define, Form2 form2)//除法输出
 {
     form2.lb_Topic.Items.Add(define.num2 + "÷" + define.num1 + "=");
 }
Пример #3
0
 public void MultiplyOutput(Define define, Form2 form2)//乘法输出
 {
     form2.lb_Topic.Items.Add(define.num1 + "×" + define.num2 + "=");
 }
Пример #4
0
 public void ReduceOutput(Define define, Form2 form2)//减法输出
 {
     form2.lb_Topic.Items.Add(define.num2 + "-" + define.num1 + "=");
 }
Пример #5
0
 public void AddOutput(Define define, Form2 form2) //加法输出
 {
     form2.lb_Topic.Items.Add(define.num1 + "+" + define.num2 + "=");
 }
Пример #6
0
 public void Fdivide(Define define, Form2 form2)//分数除法
 {
     define.ans[form2.i] = ((define.num1 * define.num4).ToString() + "/" + (define.num2 * define.num3).ToString());
 }
Пример #7
0
 public void Fmultiply(Define define, Form2 form2)//分数乘法
 {
     define.ans[form2.i] = ((define.num1 * define.num3).ToString() + "/" + (define.num2 * define.num4).ToString());
 }
Пример #8
0
 public void Freduce(Define define, Form2 form2)//分数减法
 {
     define.ans[form2.i] = ((define.num1 * define.num4 - define.num3 * define.num2).ToString() + "/" + (define.num2 * define.num4).ToString());
 }
Пример #9
0
 public void Fadd(Define define, Form2 form2)//分数加法
 {
     define.ans[form2.i] = ((define.num1 * define.num4 + define.num3 * define.num2).ToString() + "/" + (define.num2 * define.num4).ToString());
 }
Пример #10
0
 public void Divide(Define define, Form2 form2)//除法结果
 {
     define.ans[form2.i] = (define.num2 / define.num1).ToString();
 }
Пример #11
0
 public void Multiply(Define define, Form2 form2)//乘法结果
 {
     define.ans[form2.i] = (define.num1 * define.num2).ToString();
 }
Пример #12
0
 public void Reduce(Define define, Form2 form2)//减法结果
 {
     define.ans[form2.i] = (define.num2 - define.num1).ToString();
 }
Пример #13
0
 public void Add(Define define, Form2 form2) //加法结果
 {
     define.ans[form2.i] = (define.num1 + define.num2).ToString();
 }
Пример #14
0
 public void FdivideOutput(Define define, Form2 form2)//分数减法
 {
     form2.lb_Topic.Items.Add("(" + GCD(define.num1, define.num2) + "/" + GCD(define.num2, define.num1) + ")" + "÷" + "(" + GCD(define.num3, define.num4) + "/" + GCD(define.num4, define.num3) + ")" + "=");
 }
Пример #15
0
 public void FmultiplyOutput(Define define, Form2 form2)//分数乘法
 {
     form2.lb_Topic.Items.Add("(" + GCD(define.num1, define.num2) + "/" + GCD(define.num2, define.num1) + ")" + "×" + "(" + GCD(define.num3, define.num4) + "/" + GCD(define.num4, define.num3) + ")" + "=");
 }