求大神看看这个C#代码那错了这么改,实现加减运算!小弟是菜鸟新手噢!
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace sx8_1
{
interface Ijia
{ void jia();}
interface Ijian
{ void jian();}
class jisuan : Ijia, Ijian
{
public int a;
public int b;
public jisuan(int A, int B)
{ a = A; b = B; }
public void jia()
{ return a + b; }
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入第一个数:");
int m = int.Parse(Console.ReadLine());
Console.WriteLine("请输入第二个数:");
int n = int.Parse(Console.ReadLine());
ji suan js = new jia(m, n);
Console.ReadLine("两数之和是:{0}", jia());
jisuan js = new jian(m, n);
Console.ReadLine("两数之差是:{0}", jia());
Console.ReadLine();
}
}
}