【发布时间】:2017-01-21 03:43:42
【问题描述】:
我查看了其他版本的 Visual Studio 的不同资源,但我不清楚如何在这里使用 arg 调用 Main
using System;
namespace helloWorld
{
class MainClass
{
public static void Main(string[] args)
{
if (args.Length > 0)
{
Console.WriteLine("Hello " + args[0]);
}
else
{
Console.WriteLine("Hello World!");
}
}
}
}
【问题讨论】:
-
处于调试模式,还是一般?
标签: c#