#include <iostream> using namespace std; class Person { // write your code here...... friend void showAge(Person& p); public: Person(int age) { this->age = age; } private: int age;//私有属性 }; void showAge(Person& p) { cout << p.age << endl;//要想访问私有属性必须在成员函数中声明友元函数 } int ma...