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
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/05 10:41:24
Incompatible types:got Boolean expected LongInt pascal
progrma ex;
var
a,s,d:integer;
begin
readln(a,s,d);
if (a+s>d) and (a+d>s) and (s+d>a) then
if a=s=d then
if (a+1=s+1) or (a+1=d+1) or (s+1=d+1) then
write('XXXXXX')
else
write('ssss')
else write('sssss')
else
write('ssss');
end.
请问编译器报错:(7,11) Error:Incompatible types:got Boolean expected LongInt
求教正确答案
第七行应为 if (a=s) and (a=d) then
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英语作文