64,651
社区成员
发帖
与我相关
我的任务
分享
typedef struct binElement
{
float weight;
int voxelIndex;
}binElement;
typedef struct LORData
{
binElement *pElement;
int LORIndex;
int voxelNum;
}LORData;
LORData *List;
int a,b,c1,c2,...,d1,d2,...;//这几个值假设都已经赋值;
for(int i=0;i<m;i++)
{
List->LORIndex=a;
List->voxelNum=b;
for(int j=0;j<n;j++)
{
List->pElement[j].weight=c1; //此处报错显示,不能将float*类型的值分配搭配float类型的实体
List->pElement[j].voxelIndex=d1; //此处报错显示,不能将int*类型的值分配搭配int类型的实体
}
}