波多野结衣琪琪电影网:VFP编程的问题!!!!!急,在线等

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 08:41:44
要求我求出任意一个二维数组中某个元素,此元素在所在行最大,所在列最小并输出有关信息.我编的程序是:
clear
set talk off
input"m="to m
input"n="to n
dimension a(m,n)
for x=1 to m
for y=1 to n
input"a("+str(x,2)+","+str(y,2)+")="to a(m,n)
endfor
endfor
z=0
for b=1 to m
for c=1 to n
for e=1 to n
if a(b,c)<a(b,e)
exit
endif
endfor
if e<=n
loop
endif
for d=1 to m
if a(b,c)>a(d,c) &&这行提示操作符/操作类型不匹配&&
exit
endif
endfor
if d<=m
loop
endif
?"a("+str(b,2)+","+str(c,2)+")=",a(b,c)
z=z+1
endfor
endfor
?"共有"+str(num,2)+"个元素符合条件"
set talk on
return

可是当我运行时,他却提示操作符操作类型不匹配
请问这是怎么回事,要怎么修改?

把第8句改为下面试试:
input"a("+str(x,2)+","+str(y,2)+")="to a(x,y)