摘要
C++中的二义性问题是经常困扰程序员的一个问题,结合多年来的教学体会,针对面向对象程序设计语言C++中的二义性问题进行探讨,分别从函数重载、多基派生、含有公共基类多继承三个方面,通过具体的程序实例,分析可能出现二义性的原因以及相应的解决方法。
Programmers are often troubled by the ambiguity problem of C++ language.Based on many years' teaching experience,discusses the ambiguity of the object-oriented programming language C++ from three aspects,function overloading,multiple base derived,common base class with multiple inheritance.Analyses the reasons for ambiguity occurs and the corresponding solutions through specific instances.
出处
《现代计算机》
2011年第7期21-24,共4页
Modern Computer
关键词
C++
二义性
函数重载
多基派生
虚基类
C++
Ambiguity
Function Overloading
Multi-Base Derived
Virtual Base Class