用C#写一个控制台程序包含3中参数(值,引用和输出)

用C#写一个控制台程序包含3中参数(值,引用和输出)

void Main()
{
int a,b,c;
a=b=c=0;
Func(a,ref b,out c);
Console.WriteLine("{0} {1} {2}",a,b,c);
}

static void Func(int a, ref int b, out int c) {
a=10;
b=20;
c=30;
}

追问

唉 晚了 昨天写出来我就不会抄30遍了

追答

为你点蜡 /蜡烛... 上课要好好学好好看书啊

温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-05-08
要实现什么功能?追问

设计一个程序,使得其中包含3种参数类型的不同效果。

相似回答