摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 方法{ class Program { static void Main(string[] args) { Console.WriteLine(mysum(1, 2, 3, 4, 5, 6)); } static long mysum(params long[] v)//这里利用params关键字可以使得调用时的参数的个数可... 阅读全文
posted @ 2012-05-22 23:12
MadKeX
阅读(1764)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace cmdline{ class Program { static void Main(string[] args) { Console.WriteLine("命令行参数个数{0}",args.Length); foreach (string s in args) //利用foreach遍历args命令行参数 {... 阅读全文
posted @ 2012-05-22 22:31
MadKeX
阅读(451)
评论(0)
推荐(0)

浙公网安备 33010602011771号