阅读编程模板(main函数只给出了最后几行代码),补充Student类的实现与main函数使得程序输出如示例。
输入输出示例
输入 输出
示例 1 Constructor called.
Constructor called.
num: 20210440316
name: Zhang_fun
sex: m
num: 20210440518
name: Liu_li
sex: f
Destructor called. The num is 20210440518
Destructor called. The num is 20210440316