首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#系列课程——传递给命令行应用程序

2013-01-26 
C#系列教程——传递给命令行应用程序C#采用 System.Console.WriteLine向命令行传递参数,代码如下:class Comm

C#系列教程——传递给命令行应用程序

C#采用 System.Console.WriteLine向命令行传递参数,代码如下:

class CommandLine{    static void Main(string[] args)    {        System.Console.WriteLine("parameter count = {0}", args.Length);        for (int i = 0; i < args.Length; i++)        {            System.Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);        }    }}



 

热点排行