谁用visual c++6.0,有些问题问一下大家。

2025-04-14 09:25:13
推荐回答(1个)
回答1:

stu.name="Li Fang";

改为
strncpy(stu.name, "Li Fang", strlen("Li Fang"));