
static void Main(string[] args){ // For the sake of this example, we're just printing the arguments to the console. for (int i = 0; i < args.Length; i++) { Console.WriteLine("args[{0}] == {1}", i, args[i]); }}然后将参数存储在
args字符串数组中:
$ AppB.exe firstArg secondArg thirdArgargs[0] == firstArgargs[1] == secondArgargs[2] == thirdArg
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)