赞
踩
c风格创建二维数组:
-
- int l1 = word1.size();
- int l2 = word2.size();
- int **dp = new int*[l1];
- for(int i = 0;i<l1;i++)
- {
- dp[i] = new int[l2]();
- }
c++风格创建二维数组
vector<vector<int> > dp(nums1.size(), vector<int>(nums2.size()));
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。