Coding problem using a 2-d array of structs inside another struct in C

前端 未结 5 794
醉酒成梦
醉酒成梦 2021-02-06 10:58

I am working with a 2-dimensional array of structs which is a part of another struct. It\'s not something I\'ve done a lot with so I\'m having a problem. This function ends up f

5条回答
  •  时光取名叫无心
    2021-02-06 11:38

    *thisImage.arr = *imageArr; /*put imageArr into the thisImage imagestruct*

    This won't work. You have to declare arr as colorRGB **, allocate it accordingly, etc.

提交回复
热议问题