摘要
在C++中,二义性问题严重影响程序的正确性与安全性以及程序员的理解.文章从运算符、继承、多态性三方面分析了产生二义性的原因,对其进行了分类,并通过实例解析给出了有效解决方法,为避免二义性在开发设计中负面的影响提供了技术保障.
In C++,ambiguity has seriously infunced the programs in terms of their correctness,safety and comprehensibility.There analyses causes that brng about ambiguity from the three aspects:operators,inheritance and polymorphism and offes the solutions of the problem.It provides the technical ensurance for avoiding the possible negative effects in program exploration and design.
出处
《太原师范学院学报(自然科学版)》
2008年第1期62-66,共5页
Journal of Taiyuan Normal University:Natural Science Edition
关键词
二义性
结合性
继承
多态
ambiguity
integration
inheritance
polymorphism