时间:2024-10-12 22:23:56
1、打开一个cpp文件。
3、首先写上friend。
5、class 后面写上类名,如GoodGay,这样GoodGay就成为了Building类的友元类了。