[問題] 執行 出現錯誤視窗

看板C_and_CPP (C/C++)作者 (大冠)時間14年前 (2011/09/09 16:54), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) DEV ++ 問題(Question): 如標題 程式碼(Code):(請善用置底文網頁, 記得排版) for(j=0;j<height;j++) { for(i=0;i<width;i++) { double rr=R[i][j]/(R[i][j]+G[i][j]+B[i][j]); double gg=G[i][j]/(R[i][j]+G[i][j]+B[i][j]); double W=((rr-0.33)*(rr-0.33))+((gg-0.33)*(gg-0.33)); double F1=(-0.13767*rr*rr)+(1.0743*rr)+0.1452; double F2=(-0.776*rr*rr)+(0.561*rr)+0.1766; if(gg<F1 && gg>F2 && W>-0.0004) { x[i][j]=255; } else { x[i][j]=0; } } } 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.125.35.194

09/09 17:20, , 1F
你覺得這樣就能叫別人幫你debug?
09/09 17:20, 1F

09/09 17:23, , 2F
建議用置底文連結貼上你的完整程式碼
09/09 17:23, 2F

09/09 17:51, , 3F
1.附碼 2.附錯誤訊息 3.確保rij+gij+bij不可為0
09/09 17:51, 3F
文章代碼(AID): #1EQTGhUI (C_and_CPP)
文章代碼(AID): #1EQTGhUI (C_and_CPP)