using system;
class test
{
static void f(params int[] args)
{
console.writeline("array contains {0} elements:",args.length);
foreach(int i in args)
console.write("{0}",i);
console.writeline();
}
public static void main()
{
int [] a = {1,2,3};
f(a);
f(10,20,30,40);
f();
}
}
新闻热点
疑难解答