![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++primer
Dorla
这个作者很懒,什么都没留下…
展开
-
7.35
typedef string Type; Type initVal(); class Exercise { public: typedef double Type; Type setVal(Type); Type initVal(); private: int val; }; Type Exercise::setVal(Type parm) 7{ val= parm+init原创 2016-04-16 16:04:44 · 319 阅读 · 0 评论 -
7.3.4 friend class
#ifndef MYSCREEN_H #define MYHSCREEN_H #include"string.h" //#include "Window_mgr.h" #include class Window_mgr; class Screen { public: typedef string::size_type pos; Screen()=default; // Screen(po原创 2016-04-15 20:18:05 · 284 阅读 · 0 评论