程序设计语言概念(ConceptsofProgrammingLanguages)英文第10版第7章.pptVIP

  • 15
  • 0
  • 约1.31万字
  • 约 35页
  • 2018-04-27 发布于河南
  • 举报

程序设计语言概念(ConceptsofProgrammingLanguages)英文第10版第7章.ppt

程序设计语言概念(ConceptsofProgrammingLanguages)英文第10版第7章

* * * * * Copyright ? 2012 Addison-Wesley. All rights reserved. 1-* Assignment as an Expression In the C-based languages, Perl, and JavaScript, the assignment statement produces a result and can be used as an operand while ((ch = getchar())!= EOF){…} ch = getchar() is carried out; the result (assigned to ch) is used as a conditional value for the while statement Disadvantage: another kind of expression side effect Copyright ? 2012 Addison-Wesley. All rights reserved. 1-* Multiple Assignments Perl, Ruby, and Lua allow multiple-target multiple-source assignments ($first, $second, $third

文档评论(0)

1亿VIP精品文档

相关文档