函数修饰符 返回值的类型 函数名(参数类型1,参数名1,…,params 类型名[] 数组名) {
………………………. Return 返回值; }
例如,有如下函数:
Static demonfuncation(string str,params int[] intArray) {
…………………….. }
要调用它就可以使用如下代码: Demonfuncation(“you are great!”,2,3);
C# 参数数组
阅读 83
2022-07-27
函数修饰符 返回值的类型 函数名(参数类型1,参数名1,…,params 类型名[] 数组名) {
………………………. Return 返回值; }
例如,有如下函数:
Static demonfuncation(string str,params int[] intArray) {
…………………….. }
要调用它就可以使用如下代码: Demonfuncation(“you are great!”,2,3);
相关推荐
精彩评论(0)