carlD = (char*)malloc(strlen(car Make) + strlen(carModel) + 1 + sizeof(char)); A common error when allocating a string is forgetting to account for the O a.
確定! 回上一頁