我无法完成此项工作。显然,我不能在案例中使用>或<,有没有解决方法?谢谢!Pascal中逻辑运算符(< > =等)的语句声明
case num of
0:
begin
cont_0 := cont_0 + 1;
end;
> 0:
begin
cont_pos := cont_pos + 1;
sum_pos := sum_pos + num;
end;
< 0:
begin
sum_neg := sum_neg + num;
end;
else;
end;
可爱,优雅。谢谢! – 2009-09-07 18:56:11