摘要: 如果使用&或者|,则在if判断括号中的第一个条件为0的时候它依旧会继续去判断第二个条件,但是如果第二个条件中的除数为 0 的时候就会让程序出现错误,抛出run-time异常。 Console.Write("Enter a dividend: "); var dividend = Convert.To 阅读全文
posted @ 2020-08-10 10:39 艾孜尔江 阅读(152) 评论(0) 推荐(0) 编辑
摘要: // This try-finally statement only calls Dispose in the finally block. Font font1 = new Font("Arial", 10.0f); try { byte charset = font1.GdiCharSet; } 阅读全文
posted @ 2020-08-10 10:25 艾孜尔江 阅读(363) 评论(0) 推荐(0) 编辑