C#中的一个小问题,关于带参数运行,大家帮忙下

[复制链接]
查看11 | 回复2 | 2013-2-20 14:52:20 | 显示全部楼层 |阅读模式
修改一下你的Main函数static void Main(string[] args)args里保存的就是程序启动时的参数...
回复

使用道具 举报

千问 | 2013-2-20 14:52:20 | 显示全部楼层
static void Main(string[] args){
if(args != null && args.Length > 0){
Console.WriteLine(args[0]);
}}...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行