摘要: ///变长参数的例子 class Program { static void Main(string[] args) { ShowAgeSum("w", 1, 2, 3, 4); ShowAgeSum("h", 1, 1, 1); ShowAgeSum("c", 99, 1, 2, 3, 4, 1, 0, 0, 0, 0, 0, 0, 100000); Console.Read(); } static void ShowAgeSum(string team, params int[] ages) { int ageSum = 0; f 阅读全文
posted @ 2011-07-20 16:33 wccc 阅读(2796) 评论(2) 推荐(0) 编辑