回文章列表
作者gcin <gcin@gcin.org.tw> 看板: linux
標題Re: [問題] C++的程式在linux上執行有誤
時間gcin (2008/05/07 Wed 18:27:49)
馬摸摸 <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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻