摘要: 1 /* 表存储结构 */ 2 // 或者: template <class Type> class DuLinkList; 3 template <class Type> 4 class DuLNode 5 { 6 // 当授予对给定模版的所有实例的访问权的时候, 7 // 在作用域中不需要存在该模版或函数模版的声明。 8 // 实质上,编译器将友元声明也当作类或函数的声明对待。 9 template <class Type> friend class DuLinkList;10 // 或者: friend class DuLinkList<Type 阅读全文
posted @ 2013-02-24 15:30 SubmarineX 阅读(233) 评论(0) 推荐(0) 编辑