C++中二义性问题探讨  

Discussion on the Ambiguity of C++ Language

在线阅读下载全文

作  者:阳小兰[1] 钱程[1] 赵海廷[1] 

机构地区:[1]武汉科技大学中南分校信息工程学院,武汉430223

出  处:《现代计算机》2011年第7期21-24,共4页Modern Computer

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

关 键 词:C++ 二义性 函数重载 多基派生 虚基类 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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