You also send a fault response if someone requests the square root of a negative number.
如果有人请求负数的平方根,也将发送错误响应。
List methods are convenient for these types of manipulations, but a side-effect of my algorithm is a duplicate entry when a whole-number square root pops up.
List方法对于这些类型操作很方便,但我的算法有个副作用,就是出现整数平方根时,会有重复。
Before moving on I can describe a very simple example of pre - and post-conditions: a routine that computes the square root of a real number.
在结束此话题之前,我可以举一个有关前置和后置条件的简单例子:一个例程要计算一个实数的平方根。
应用推荐