所以說,在C語言,要回傳字串還是只能用全域變數或靜態修飾宣告,強制將記憶體位置 ... a = (char*)malloc((k*(n + 1))*sizeof(char)); strcpy(a,str); for(int i = 1; ...
確定! 回上一頁