好了,I COME BACK,下面的代码显示了我们如何打印多个参数:
000: // CommandLine\cmdline1.cs001: using System;002:003: public class CommandLine004: {005: public static void Main(string[] args)006: {007: Console.WriteLine("Number of command line parameters = {0}", args.Length);008: for(int i = 0; i args.Length; i++)009: {010: Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);011: }012: }013: }
如果你的输入为:
cmdline1 A B C
那么它的输出为:
Number of command line parameters = 3Arg[...[ 查看全文 ]