Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のような2D配列を持っています:
data[10][7] = {{1, 0, 0, 0, 1, 1, 1}, {0, 0, 0, 1, 1, 0, 0}, *and so on*}
では、すべての列を異なる変数として記述するにはどうすればよいですか? たとえば、変数 a としての両方の行のすべての最初の列、変数 b としての両方の行の 2 番目の列など?