- 15
- 0
- 约2.45万字
- 约 25页
- 2017-01-18 发布于湖南
- 举报
ppt课件-preconditionsandpostconditions
Here again you see the precondition of the example. The right way to read this is as a warning that says: Watch Out! This function requires that x is greater than or equal to zero. If you violate this condition, then the results are totally unpredictable. So, here are three possible function calls. Two of the calls meet the precondition and have predictable results. In one of the calls, the precondition fails, and the result of the function call is unpredictable. Which function call is the trouble maker? The second and third function calls are fine. The second call has an argument of z
您可能关注的文档
- ppt课件-powerpointpresentation-electricaldevices,refrigeration.ppt
- ppt课件-powerpointpresentation-humanimpactonwatercycle.ppt
- ppt课件-powerpointpresentation-movement.ppt
- ppt课件-powerpointpresentation-smallenginedisassembly.ppt
- ppt课件-powerpointpresentation-technologyinancientegypt.ppt
- ppt课件-powerpointpresentation-theeffectoflighttypeonplant.ppt
- ppt课件-powerpointpresentation-thehumandigestivesystem.ppt
- ppt课件-powerpointpresentation-theriseandfalloftheroman.ppt
- ppt课件-powerpoint-prsentation-facultateadefizica.ppt
- ppt课件-ppslidepresentation-liftmooreinc.ppt
原创力文档

文档评论(0)