C ++はvect <vec>を使用して動的な2次元配列を作成し、0に初期化します

vector<vector<int> >dp(alen,vector<int>(blen,0));

おすすめ

転載: www.cnblogs.com/rednodel/p/12697971.html