您的位置:首页 > 其它

ExitDefaultVal

2016-02-03 10:28 316 查看
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace ExitDefaultVal

{

class Program

{

static void DefValue(string a="Hi",string b="Jim")

{

Console.WriteLine(a+" "+b);

}

static void Main(string[] args)

{

Console.WriteLine("AAAAA");

DefValue();

DefValue("hello");

DefValue(b: "Tom");

Environment.Exit(2);

Console.WriteLine("BBBBB");

}

/*

AAAAA

Hi Jim

hello Jim

Hi Tom

请按任意键继续. . .

*/

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: