阅读背景:

如何在C中为结构数组正确分配内存?

来源:互联网 

This is the first time I'm using structs as I am still relatively new to C. When I try to input values for 3 structs the program crashes, but it works fine for 1 and 2. I think I may not actually be allocating enough memory. Is this the correct way to allocate memory for an array of structs?This is the first time I'm using structs as I a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: