2013年5月9日

47 异常2

摘要: View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 抛出异常{ class Program { static void Main(string[] args) { try { Console.WriteLine("请输入0-10之间的数"); int number = Convert.ToInt32(C... 阅读全文

posted @ 2013-05-09 21:48 杨柳清枫2012 阅读(76) 评论(0) 推荐(0)

46 异常

摘要: try -catchtry -catch - finallyView Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 异常{ class Program { static void Main(string[] args) { Console.WriteLine("请输入分母"); try { int a = Co... 阅读全文

posted @ 2013-05-09 21:04 杨柳清枫2012 阅读(85) 评论(0) 推荐(0)

44 命名空间和 装箱拆箱操作

摘要: namespace作用 用于区分组织不同类View Code using System;/*using System.Collections.Generic;using System.Linq;using System.Text;*/namespace Namespace_1{ class Program { static void Main(string[] args) { //命名空间用于区分和组织的作用。不同的实例引用相应的空间。 A.AA.A a = new A.AA.A(); a... 阅读全文

posted @ 2013-05-09 19:51 杨柳清枫2012 阅读(97) 评论(0) 推荐(0)

导航