[問題] 陣列轉換
現在發現是這邊有問題
可是我左看右看都沒錯
可以請各位大大跟我說哪裡有問題嗎?
for (int i = 0; i < m_TrainingNum; i++)
{
for (j = 0; j < fsize[i]; j++)
{
totalnum++;
}
}
double **delta = new double *[totalnum];
double **meldelta = new double *[ totalnum ];
for ( i = 0 ; i < totalnum ; i++ )
*(delta + i) = new double[( 2 * ORDER)];
for ( i = 0 ; i < totalnum ; i++ )
*(meldelta + i) = new double[ORDER];
k = 0;
for ( i = 0; i < m_TrainingNum; i++)
{
for ( j = 0; j < fsize[i]; j++)
{
for ( m = 0; m < (m_multiple * ORDER); m++)
{
if( m < (2*ORDER))
delta[k][m] = data[i][j][m];
else
meldelta[k][m] = data[i][j][m];
}
k++;
}
}
謝謝各位了!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.120.90.193
推
02/04 20:05, , 1F
02/04 20:05, 1F
→
02/04 20:06, , 2F
02/04 20:06, 2F
→
02/04 21:07, , 3F
02/04 21:07, 3F
→
02/04 21:08, , 4F
02/04 21:08, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章