//坏习惯
#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; 
}