//好习惯
#include <iostream>
#include <string>
struct Free{
std::string name;
int num;
};
void Display(const Free & nb);
int main()
{
Free hjx1120 = {"hjx1120", 85};
Display(hjx1120);
return 0;
}
void Display(const Free & nb)
{
using std::cout;
using std::endl;
cout << "姓名: " << nb.name << endl;
cout << "金额: " << nb.num << endl;
}