摘要
在分析破坏数据安全性原因的基础上,通过对C++面向对象程序设计中常类型和常成员的深入研究,提出了将既需要共享、又需要防止改变的数据声明为常量,并探讨了常引用、常对象和用const修饰的对象成员的使用方法,实现对C++面向对象程序设计中共享数据的保护。
The reason of destroying data security was analyzed, and the constants and constant member in C ++ object-oriented programming were studied. The data requiring both share and protection were decleared as constant, and the methods of using constants and constant members were discussesed. In C ++ object-oriented programming, the protection of data sharing was realized.6 refs.
出处
《长安大学学报(自然科学版)》
EI
CAS
CSCD
北大核心
2005年第3期100-102,共3页
Journal of Chang’an University(Natural Science Edition)