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

Study on Reducing Unexpected Result of Postfix Increment or Decrement Operator

在线阅读下载全文

作  者:张合花 齐永奇[2] 

机构地区:[1]郑州大学物理工程学院,郑州450001 [2]华北水利水电大学机械学院,郑州450045

出  处:《中原工学院学报》2015年第1期87-90,共4页Journal of Zhongyuan University of Technology

摘  要:在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.

关 键 词:自增运算符 自减运算符 调试版 发行版 Add-imVC 6.0 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象