二次元配列(質問掲示板)
投稿:
ikosami
投稿:2010/03/27 19:09:27(最新:2010/03/27 23:34:27)

二次元配列を作ろうとして、
というものを試してみたらnullと表示されました・・・
やはりgetで配列を作成するのですか?
その場合はどうしたらいいのでしょうか?
それとも根本的に間違っていますか?
エラーは
1st argument is not array. line : 14
ツイート
setVariable("a", createArray() ) i = 0 while i < 8 setVariable("a[i]", createArray() ) i = i + 1 end u= 0 while u < 8 i = 0 while i < 8 getVariable("a")[u][i] = 0 i = i + 1 end u = u + 1 end speak(getVariable("a")[0][0])
というものを試してみたらnullと表示されました・・・
やはりgetで配列を作成するのですか?
その場合はどうしたらいいのでしょうか?
それとも根本的に間違っていますか?
エラーは
1st argument is not array. line : 14
コメントする
コメントするには、ログインする必要があります。
ありがとうございます。