c++结构体变量如何清空

2025-12-17 03:29:48
推荐回答(1个)
回答1:

struct student stu;
memset(&stu, 0, sizeof(stu));