行列を多次元配列を使用して実装する test.lua -- 3x3の行列を生成する row = 3 -- 行 column = 3 -- 列 matrix = {} for i = 1, row do matrix[i] = {} for j = 1, column do matrix[i][j] = 0 end end test.cpp #include <iostream> #include <lua.hpp> using namespace std; </lua.hpp></iostream>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。