// consider changing this:try { result = 100 / num;}catch (exception e) { result = 0;}// to this:if (num != 0) result = 100 / num;else result = 0;
' consider changing this:try result = 100 / numcatch (e as exception) result = 0end try// to this:if not (num = 0) result = 100 / numelse result = 0end if
// consider changing this:try { result = 100 / num;}catch (e:exception) { result = 0;}// to this:if (num != 0) result = 100 / num;else result = 0;c# vb jscript
<%@ page language="vb" strict="true" %><%dim bdim c as string' this causes a compiler error:a = "hello"' this causes a compiler error:b = "world"' this does not:c = "!!!!!!"' but this does:c = 0%>
var a;var b;a = "hello";b = "world";b = 0;
新闻热点
疑难解答
图片精选