class Solution { public: string multiply(string num1, string num2) { string zero = "0";//特殊情况 if (num1[0] == '0' || num2[0] == '0') return zero; int len1 = num1.size(); int len2 = num2.size(); char **str = new char*[len2];//建立一个二维的len2*(len1+len2+1)的数组,这里的建立和赋值是教学局了,学习 for (int i = 0; i < len2; i++) { str[i] = new char[len1 + len2 + 1]; memset(str[i], '0', len1 + len2);//初始化赋值 str[i][len1 + len2] = '