达伦德农场:C#输出返回参数个数

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 20:27:32
用C#写一个程序,要求返回参数的个数,如:
参数为:a b c
则输出3

using System;

namespace test
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Class1
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
// TODO: 在此处添加代码以启动应用程序
//
System.Console.WriteLine(args.Length);
}
}
}