C++设置默认值和初始化一样吗

2025-04-08 19:55:37
推荐回答(1个)
回答1:

是默认值,但对数组的初始化写错了;应该是: student (char sname[0]='"",long sid=0);
字符数组可以设置为空串,而不是字符