摘要: 在 类 定 义 中定 义 一个静 态 常量 , 在友 员 函数中不能 访问 ! 头 文件 class String { private: ....... static const int CIN=100; ....... public: ...... friend void function1(String & st) ...... }; 类 描述文件中 void function1(String & st) { // 访问... 阅读全文
posted @ 2012-09-26 10:54 CBDoctor 阅读(308) 评论(0) 推荐(0)