Lecture4DecisionandConditions课程.pptVIP

  • 5
  • 0
  • 约2.65万字
  • 约 59页
  • 2016-12-04 发布于江苏
  • 举报
* To arrange strings alphabetically, the less than or greater than relational operators cannot be used. Use the CompareTo method (see next slide). * If the ToUpper method is being used, compare it to an uppercase literal (“PROGRAMMING”). If the ToLower method is being used, compare it to a lowercase literal (“programming”). * When using compound Boolean expressions make sure each side of the logical operator is a complete expression. For example, countInteger 10 || 0 is incorrect. Instead it should be countInteger 10 || countInteger 0 * Most programmers code else if on one line when multi

文档评论(0)

1亿VIP精品文档

相关文档