|
测试成功,主要代码:
(一)类库代码:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace myFunction
- {
- public class Asmd
- {
- private int pam1;
- private int pam2;
- public int Ad(int a, int b)
- {
- this.pam1 = a;
- this.pam2 = b;
- return pam1 + pam2;
- }
- public int Sub(int a, int b)
- {
- this.pam1 = a;
- this.pam2 = b;
- return pam1-pam2;
- }
- public int Mul(int a, int b)
- {
- this.pam1 = a;
- this.pam2 = b;
- return pam1*pam2;
- }
- public int Div(int a, int b)
- {
- this.pam1 = a;
- this.pam2 = b;
- return pam1/pam2;
- }
- }
- }
复制代码 |
|