您的位置:首页 > 其它

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

2015-08-11 20:13 330 查看
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);  //格式化输出第一个参数
}
}


  

 

启动调用

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: