摘要:
///变长参数的例子 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 阅读全文