调用时怎么数值没有变化?
using System;
namespace huan
{
public class getdata
{
public void getit(ref int a,ref int b)
{ int c=0;
if(a<b)
{ a=c;
b=a;
c=a;
Console.WriteLine("The two number that from big to small is:{0},{1}",a,b);
}
}
}
public class use
{
public static void Main()
{
int a=3,b=5;
getdata useit=new getdata();
useit.getit(ref a,ref b);
}
}
}
结果怎么是:
The two number that from big to small is:0,0
?????????????????