可変長配列– tag –
-
Visual StudioのC2131原因と対処法:C++で可変長2次元配列(VLA)が作れない時はstd::vectorで解決
C++で行数R・列数Cを実行時に入力し、int a[R][C];のように2次元配列を作ろうとすると、Visual Studio(MSVC)ではC2131: expression did not evaluate to a constantで... -
C++での可変長配列とstd::vectorの完全ガイド
C++では、可変長配列を効果的に管理するために、標準テンプレートライブラリ(STL)の一部であるstd::vectorを使用します。本記事では、可変長配列の基本概念から、std:...
1
