主题:悟丑大哥,你快来看看呀!
悟丑大哥,你给我的那道字符串编辑的题目程序有问题,我也修改了你的语法,都未成功,你快来指正,程序如下:
input x$
input a$,b$
for i=1 to len(x$)
if mid$(x$,i,1)=a$ then
x$=left$(x$,i-1)+b$+right$(str,i+1)
? x$;
end if
next i
end
程序答案:THIS IS A BEIS IS A BOOK.
input x$
input a$,b$
for i=1 to len(x$)
if mid$(x$,i,1)=a$ then
x$=left$(x$,i-1)+b$+right$(str,i+1)
? x$;
end if
next i
end
程序答案:THIS IS A BEIS IS A BOOK.