关于args

来源:互联网 发布:基因组数据分析 编辑:程序博客网 时间:2024/06/05 00:16
 

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string [] args)
        {
            for (int i = 0; i < args.Length; i++)
                Console.WriteLine(args[i]);
            return;
        }
    }

}

 

其中  在C#中,args[0]代表的是第一个参数,而不是程序名。

原创粉丝点击