摘要
深入分析了C ++中类的数据成员类型以及类中数据成员初始化的作用和实现方法 ,指出了程序设计中出现的问题和解决方法 ,并举例说明如何正确使用成员初始化法。
On the basis of deep analyzing the kinds of data members of class in c++ language, and discussing about the effect and realization methods of data member initialization ,and after pointing out the problem in programming design and giving out the resolvent, the author gives the examples to show the methods of initializing data members using constructor function.
出处
《计算机与数字工程》
2005年第3期53-54,共2页
Computer & Digital Engineering
关键词
类
C++
数据成员
程序设计
初始化
class, C++, data member,program design,initialization