C语言结构体指针综合运用出错

2025-01-24 00:35:53
推荐回答(2个)
回答1:

源码方便发一下文字版的,我觉得能调的更快。不然,我得手打一遍
--------------------------------------------------------------------------------

printf("%d %s %s %d,%d,%d %f", stub.num, stub.name, stub.sex, stub.score[0], stub.score[1], stub.score[2], stub.average);
--------------------------------------------------------------------------------
stub.score类型是int 导致了后面数据也溢出了

回答2:

哈哈 ···最该截图的max函数不截图