error:incompatible types:got "bollean" expected "longint"

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 10:15:13

error:incompatible types:got "bollean" expected "longint"
error:incompatible types:got "bollean" expected "longint"

error:incompatible types:got "bollean" expected "longint"
if k1 and k2 then
begin
writeln('Error');
writeln('Thank you,Press Enter to Exit the Program');
readln;
halt;
end;
这句的判断错了,最后的小错误不应该啊
if 语句两个或以上的判断条件要打括号的
if (k1)and (k2) then begin