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.
私はC ++で2dベクトルを作成しようとしています。次を使用して宣言します:
std::vector < std::vector <TYPE> > VARIABLE;
これは正常に動作します。他の変数を宣言せずに変数を宣言しながら、最初のベクトルの「長さ」を宣言することは可能ですか? つまり、Variable = 長さ 2 のベクトルで、それぞれが未知の長さのベクトルであると言えますか?