using System; using System.Collections.Generic; using System.Text; namespace 异常捕获 { class Program { staticvoid Main(string[] args) { int a =1; int b =0; try { a = a / b; } catch (System.DivideByZeroException e) { Console.WriteLine(e.Message); } } } }
肩负责任,永不退缩
posted on
2007-08-18 10:12ATP.NET
阅读(178)
评论(0)
编辑收藏举报