#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class Person
{
public:
int a;
int b;
};
//左移运算符重载
ostream& operator << (ostream& cout, Person& p)
{
cout << "p.a = " << p.a << " p.b = " << p.b;
return cout;
}
void test01()
{
Person p;
p.a = 10;
p.b = 10;
cout << p << endl;
}
int main()
{
test01();
return 0;
}