incompatible types when assigning to type 'CHANGE' from type 'struct CHANGE *'typedef struct change{char str1[21];char str2[21];}CHANGE;CHANGE *p=NULL;p=(CHANGE*)calloc(3,sizeof(CHANGE*)); /*申请指针数组*/p[0]=(CHANGE*)calloc(M,sizeof(CHANGE));
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/29 02:01:28
incompatible types when assigning to type 'CHANGE' from type 'struct CHANGE *'
typedef struct change
{
char str1[21];
char str2[21];
}CHANGE;
CHANGE *p=NULL;
p=(CHANGE*)calloc(3,sizeof(CHANGE*)); /*申请指针数组*/
p[0]=(CHANGE*)calloc(M,sizeof(CHANGE)); /把申请的地址存到指针数组里*/
大概就是这些...为什么会出错呢?
前两句改一下:
CHANGE **p=NULL;
p=(CHANGE**)calloc(3,sizeof(CHANGE*)); /*申请指针数组*/
error:incompatible types:got bollean expected longint
pascal中的 Incompatible types:got Double expected Smallint
types
incompatible types when assigning to type 'CHANGE' from type 'struct CHANGE *'typedef struct change{char str1[21];char str2[21];}CHANGE;CHANGE *p=NULL;p=(CHANGE*)calloc(3,sizeof(CHANGE*)); /*申请指针数组*/p[0]=(CHANGE*)calloc(M,sizeof(CHANGE));
Incompatible types:got Boolean expected LongInt pascalprogrma ex;vara,s,d:integer;beginreadln(a,s,d);if (a+s>d) and (a+d>s) and (s+d>a) thenif a=s=d thenif (a+1=s+1) or (a+1=d+1) or (s+1=d+1) thenwrite('XXXXXX')elsewrite('ssss')else write('sssss') el
be incompatible with的中文意思
different types
types是什么意思
all skin types tous types de peau
运行模拟器 错误incompatible state 是什么原因 怎么解决
parameter 1:different types
types of cross
types的意思
types是什摸意思
types的意思
toutes peaux all skin types
煤炭指标 V-Types是什么意思?
关于Family Types英语作文