码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-10-24 10:50:04      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:blog   http   ar   sp   div   2014   on   log   bs   

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);  //格式化输出第一个参数
	}
}

  

 

启动调用

bubuko.com,布布扣

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

标签:blog   http   ar   sp   div   2014   on   log   bs   

原文地址:http://www.cnblogs.com/xmcrew/p/4047484.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!