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.
整数の 10 個の変数を使用する必要があるが、それらを個別に入力したくない、などint a, b, c, dと想像してみてください。もっと効率よくやりたい。これらすべての変数を定義する for ループを作成する方法はありますか?
int a, b, c, d
のような整数を期待しますint a1, a2, a3, ..., a10;。
int a1, a2, a3, ..., a10;