static int Main(string[] args)
{
// 1.
for(int i = 0; i < args.Length; i++)
Console.WriteLine("Arg: {0}", args[i]);
// 2.
foreach(string arg in args)
console.WriteLine("Arg: {0}", arg);
// 3.
string[] theArgs = Environment.GetCommandLineArgs();
foreach(string arg in theArgs)
Console.WriteLine("Arg: {0}", arg);
return 0;
}
댓글 없음:
댓글 쓰기