public void AnsOutput(Define define, Form2 form2)//答案输出 { for (int i = 0; i < define.subnum; i++) { form2.lb_Ans.Items.Add(define.ans[i]); } }
public void DivideOutput(Define define, Form2 form2)//除法输出 { form2.lb_Topic.Items.Add(define.num2 + "÷" + define.num1 + "="); }
public void MultiplyOutput(Define define, Form2 form2)//乘法输出 { form2.lb_Topic.Items.Add(define.num1 + "×" + define.num2 + "="); }
public void ReduceOutput(Define define, Form2 form2)//减法输出 { form2.lb_Topic.Items.Add(define.num2 + "-" + define.num1 + "="); }
public void AddOutput(Define define, Form2 form2) //加法输出 { form2.lb_Topic.Items.Add(define.num1 + "+" + define.num2 + "="); }
public void Fdivide(Define define, Form2 form2)//分数除法 { define.ans[form2.i] = ((define.num1 * define.num4).ToString() + "/" + (define.num2 * define.num3).ToString()); }
public void Fmultiply(Define define, Form2 form2)//分数乘法 { define.ans[form2.i] = ((define.num1 * define.num3).ToString() + "/" + (define.num2 * define.num4).ToString()); }
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()); }
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()); }
public void Divide(Define define, Form2 form2)//除法结果 { define.ans[form2.i] = (define.num2 / define.num1).ToString(); }
public void Multiply(Define define, Form2 form2)//乘法结果 { define.ans[form2.i] = (define.num1 * define.num2).ToString(); }
public void Reduce(Define define, Form2 form2)//减法结果 { define.ans[form2.i] = (define.num2 - define.num1).ToString(); }
public void Add(Define define, Form2 form2) //加法结果 { define.ans[form2.i] = (define.num1 + define.num2).ToString(); }
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) + ")" + "="); }
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) + ")" + "="); }