期刊文献+

减少后置自增自减运算符非预期结果的研究 被引量:1

Study on Reducing Unexpected Result of Postfix Increment or Decrement Operator
下载PDF
导出
摘要 在VC 6.0中调用函数时,如果实际参数表达式中使用了后置自增、自减运算符,发布版的运行结果可能不同于调试版的预期。本文在分析问题构成条件的基础上,选择编写Add-in类型的程序来发现这种问题并提醒程序员修改源程序,并在讨论有关注意事项后列出了主要开发步骤。所开发的Add-in程序可自动分析VC 6.0活动项目中的所有源文件和头文件,检查是否存在这种问题,从而降低出现非预期结果的可能性。 When developing programs with VC 6.0, if postfix increment or decrement operator is used in actual argument expression of function, the running result of release configuration may be unexpectedly differ- ent from that of debug configuration. Based on analyzing the conditions under which this kind of problem will appear, chosen Add-in to find this kind of problem for notifying the programmer to modify its program, dis- cussed some special questions in practice, and given the main steps in developing the Add-in. The Add-in can he used to analyze all source files and header files of the active project in VC 6.0 to determine if there is this kind of problems, thus the probability of producing unexpected result is reduced.
出处 《中原工学院学报》 CAS 2015年第1期87-90,共4页 Journal of Zhongyuan University of Technology
关键词 自增运算符 自减运算符 调试版 发行版 Add-imVC 6.0 increment operator decrement operator debug configuration release configuration Add-in VC 6.0
  • 相关文献

参考文献5

二级参考文献7

共引文献4

同被引文献8

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部