Incompatible types:got Boolean expected LongInt pascal
来源:学生作业帮 编辑:拍题作业网作业帮 分类:综合作业 时间:2024/05/29 11:44:27
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
求教正确答案
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
pascal中的 Incompatible types:got "Double" expected "Smallint"
incompatible types when assigning to type 'CHANGE' from type
types.h:31:error:expected unqualified-id before '}' token
boolean是什么意思?
John got beaten in the game,__had been expected.
_____ was expected,she got the first place in the
1.He got there ----------(soon) than l had expected.
Boolean operation是什么意思
pascal pascal pascal!
____was expected,she got the first place in the CCTV English
英语求正解We got _________as we had expected .twice scores as man
英语翻译but the salary i got was much more then expected.i cried