For example, in Listing 3, it would be good to receive an error message when doing square-root (-22.0) and exiting the program with return status -1 instead of returning -1.0.
例如,在清单3中,当执行square - root(- 22.0)时应该产生错误消息,程序退出,返回状态应该是- 1而不是- 1.0。
For example, in Listing 3, it would be good to receive an error message when doing square-root (-22.0) and exiting the program with return status -1 instead of returning -1.0.
例如,在清单3中,当执行square - root(- 22.0)时应该产生错误消息,程序退出,返回状态应该是- 1而不是- 1.0。
应用推荐