→ m9556:if mid(a,x,1)=1 then 07/29 12:12
想check a變數是偶同位還是奇同位
該怎麼寫呢?
我原本是這樣想的
a="11110000"
n=0
for x = 0 to 7
if a[x] = 1 then
n=n+1
end if
next x
text.text=n/2
可是發現a[x] 這樣寫是錯的
我該怎麼做呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.192.232