Memory fault when using malloc with struct array;

前端 未结 0 1821
耶瑟儿~
耶瑟儿~ 2020-11-30 01:07
int addWagon(train* t,int position,int type, int capacity){
    wagon w;
    w.capacity = capacity;
    w.type = type;
    if(t->length == 10){
        printf(&qu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题