摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 求任意长度数组的最大值__整数类型___方法_{ c... 阅读全文
posted @ 2015-06-22 21:59
骏码信息
阅读(362)
评论(0)
推荐(0)
摘要:
namespace params参数的用法{ class Program { public static void Test(string name,params int[] score) { int sum = 0; ... 阅读全文
posted @ 2015-06-22 20:33
骏码信息
阅读(371)
评论(0)
推荐(0)
摘要:
如果在为方法声明参数时未使用 ref 或 out,则该参数可以具有关联的值。可以在方法中更改该值,但当控制传递回调用过程时,不会保留更改的值。通过使用方法参数关键字,可以更改这种行为。paramsparams 关键字可以指定在参数数目可变处采用参数的方法参数。在方法声明中的 params 关键字之后... 阅读全文
posted @ 2015-06-22 19:58
骏码信息
阅读(239)
评论(0)
推荐(0)