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
请按任意键继续. . .
*/
}
}
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
请按任意键继续. . .
*/
}
}
相关文章推荐
- 数据结构——排序算法总结
- Linux 阻塞性驱动程序设计
- Visual Studio移除Unsed Reference
- lvs基本概念、调度方法、ipvsadm命令及nat模型示例
- mybaties 高级结果映射
- Python内建数据结构详解
- atoi函数的应用
- WebView:带进度条的WebView
- lvs基本概念、调度方法、ipvsadm命令及nat模型示例
- BZOJ 4016: [FJOI2014]最短路径树问题( 最短路 + 点分治 )
- C#读书雷达
- 关于AJAX跨域调用ASP.NET MVC或者WebAPI服务的问题及解决方案
- JAVA单例模式的各种写法分析,最优为枚举
- VirtualBox更改默认路径
- Android React Native使用原生模块
- 自定义按照图片宽高比例缩放的RadioLayout
- SQL查询小练习 - 001(咋个办呢 zgbn)
- MD5加密
- ORACLE数据库查看分区表相关信息的方法
- Golang 开发移动应用的OpenGL(Android为例)的渲染管线