首页 > 代码库 > _03_启动程序传递参数_并显示参数

_03_启动程序传递参数_并显示参数

using System;class listArg0{	public static void Main(String[] args)	{		string strName;  //声明一个string类型的值变量		strName = args[0];  //把第一个参数赋给变量strName		Console.WriteLine("This is the first argument: {0}!", strName);  //格式化输出第一个参数	}}

  

 

启动调用

_03_启动程序传递参数_并显示参数