close

int *length;

length= new int[NumSeg];

在C++不能直接宣告一個大小為非常數的陣列,因此需要用new來配置記憶體

最後記得釋放

arrow
arrow
    全站熱搜

    glitterHsin 發表在 痞客邦 留言(0) 人氣()