参考:https://www.cnblogs.com/grandyang/p/6804753.html
注意:复习容器的定义方法??
class Solution {public: vector> matrixReshape(vector >& nums, int r, int c) { int m=nums.size();//m为nums行数 int n=nums[0].size(); //n为nums列数 vector > res(r, vector (c)); //讲真这个定义不太搞懂?? if(m*n!=r*c) return nums; for(int i=0;i