继续求助。。。一些完全看不懂的。。。错误信息(?)
pascal吧
全部回复
仅看楼主
level 10
雪风晓炎 楼主
total error:2;
illegal parameter:-Mfpc;
error during compilation;
渣渣表示完全看不懂。。。。求翻译。。。。。
2014年04月03日 04点04分 1
level 10
雪风晓炎 楼主
求助啊……各种急……
2014年04月04日 04点04分 2
level 10
雪风晓炎 楼主
uses
crt;
var
level:(A,B,C);
sign:array[1..30,1..16] of (unuse,opened,flag);
ground:array[1..30,1..16] of -1..8;
booms:integer;
procedure super(x,y);
var
ns:integer;
begin
if sign[x-1,y-1]=flag then ns:=ns+1;
if sign[x,y-1]=flag then ns:=ns+1;
if sign[x+1,y-1]=flag then ns:=ns+1;
if sign[x-1,y]=flag then ns:=ns+1;
if sign[x+1,y]=flag then ns:=ns+1;
if sign[x-1,y+1]=flag then ns:=ns+1;
if sign[x,y+1]=flag then ns:=ns+1;
if sign[x+1,y+1]=flag then ns:=ns+1;
if ground[x,y]=ns then
begin
if sign[x-1,y-1]<>flag then leftclick(x-1,y-1);
if sign[x,y-1]<>flag then leftclick(x,y-1);
if sign[x+1,y-1]<>flag then leftclick(c+1,y-1);
if sign[x-1,y]<>flag then leftclick(x-1,y);
if sign[x+1,y]<>flag then leftclick(x+1,y);
if sign[x-1,y+1]<>flag then leftclick(c-1,y+1);
if sign[x,y+1]<>flag then leftclick(x,y+1);
if sign[x+1,y+1]<>flag then leftclick(x+1,y+1);
end;
emd;
function win;
var
i,j,x,y,all,other:integer;
begin
case level of
A:begin
all:=10;
x:=9;
y:=9;
end;
B:begin
all:=40;
x:=16;
y:=16;
end;
C:begin
all:=99;
x:=30;
y:=16;
end;
end;
other:=x*y-all;
for i:=1 to 16 do
for j:=1 to 30 do
begin
if (ground[i,j]=-1)and(sign[i,j]=flag) then
all:=all-1;
if (ground[i,j]<>-1)and(sign[i,j]=opened) then
other:=other-1;
end;
if (all=0)or(other=0)then
begin
clrscr;
textcolor('red');
repeat
writeln('You win!!!');
until keypress;
end;
end;
procedure lose;
begin
clrscr;
repeat
textcolor('red');
writeln(' Sorry!!! You Lost!!!');
until keypressed;
end;
2014年04月10日 12点04分 6
level 10
雪风晓炎 楼主
发出来格式完全没对 我试试其他的方法………………
2014年04月10日 12点04分 7
win函数没返回值
2014年09月07日 09点09分
level 6
淘宝一本FREE PASCAL基础语言与算法,后面有编译错误对照表
2014年08月30日 08点08分 8
敢不挖坟吗[冷]
2014年08月30日 08点08分
回复 wfwhl12 :啥?
2014年08月30日 08点08分
回复 爱笑的tdtf :别挖坟
2014年08月30日 08点08分
回复 wfwhl12 :挖坟是啥意思
2014年08月30日 09点08分
level 7
楼主可能有变量定义错误了,麻烦查看一下。
2016年02月17日 08点02分 9
level 1
学会关键字就可以了
2016年08月18日 13点08分 11
1