摘要: 1 #include <iostream> 2 using namespace std; 3 4 class Box 5 { 6 double width; 7 public: 8 friend void printWidth( Box box ); //printWidth()为Box的友元 9 阅读全文
posted @ 2018-04-12 08:58 小雨滴答 阅读(89) 评论(0) 推荐(0) 编辑