馬摸摸 <koucha.bbs@ptt.cc> wrote:
> 因為事實上我完全不曾使用過linux
> 所以如果問的問題很基礎 請見諒
> 我之前在windows系統下用dev c++寫了一支程式
> 因故要到linux的系統下執行
> 但執行了後就是會卡在雙層迴圈的其中一個值
> 類似這樣
> for(int i = 0 ; i < 943 ; i++)
> {
> for(int j = 0 ; j < 1682 ; j++)
> {
> fin>>data[i][j];
> }
> }
Maybe there are some array boundary write problem. ( write outsdie array range)
You can use valgrind to find it, but valgrind is terribly slow.
--
My Projects:
http://hyperrate.com