检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]中国电子科技集团公司第五十四研究所,河北石家庄050081 [2]中国石油天然气管道工程有限公司天津分公司,天津300280
出 处:《无线电工程》2009年第12期55-58,共4页Radio Engineering
摘 要:结合C++开发工程实践,分析了目前C++开发所面临的问题,包括C++缺少二进制级标准导致的可移植性问题,和C++头文件不能完全隐藏实现部分而导致的封装性问题。分析了目前C++开发的2种通知机制的问题,包括使用虚函数继承实现接收通知导致的不符合常识的问题,以及使用组件类与客户类紧耦合导致的独立性差的问题。针对以上问题,结合目前主流的面向接口的编程技术,给出了在C++下的一种实现。Based on the programming practices of C + + development, the article analyzes the problems in C + + development, including the portability problem because of the absence of binary level standard, and encapsulation problem because the C ++ header file cannot hide implementation part entirely. Then it analyzes two notification mechanism problems in C ++ development, including the common sense violation problem caused by using virtual function inheritance to receive notification, and inter-dependence problem caused by tight coupling of component class and it's client class. Finally, the paper presents an interface-oriented programming implementation in C ++ to solve these problems.
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117