Re: [問題] C語言高斯消去法

看板C_and_CPP作者 (非天夜翔)時間16年前 (2009/10/16 15:41), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《goodcharming (未知的未來)》之銘言: : 請問一下版友 : 因為我是C語言方面的新手 : 最近在研究高斯消去法 : 不過最後都剩一個錯誤是 : fatal error C1010: 尋找先行編譯標頭檔指示詞時碰到未預期的檔案結尾。您的原始檔 : 中是否忘了加上 '#include "stdafx.h"'? : 這樣子 : 不過我不知道說要改那邊會比較好 : 或是有版友可以交我一下M*N個矩陣的高斯消去法要怎麼做嗎 : 最近搞這個弄得一個頭兩個大 : 老師也不交我要我自己學 : 所以來這邊求助 : 希望大家可以幫幫我 : 謝謝大家了 : 差點忘記說 : 我是用C++去跑C語言的 : 不知道會不會有衝突到 Line 19: error: stdafx.h: No such file or directory 他很明確的指出說: "stdafx.h" 你的路徑裡面沒有這個檔案 Line 25: error: matlab Gauss.h: No such file or directory 同上 Line 8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token 你是不是不把 /* ... */ 前面的 /* 之 / 刪掉了 Line 9: error: invalid suffix "c" on floating constant In file included from t.c:11: Line 753: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'div' In function 'main': Line 40: error: stray '\' in program Line 40: error: missing terminating " character printf(-----------------------------\n"); printf("-----------------------------\n"); 觀察以上兩個 statement Line 41: error: invalid lvalue in decrement Line 41: error: expected ')' before 'for' Line 44: error: expected ';' before '}' token In function 'gauss': Line 91: error: expected expression before '/' token 剩下等你排版好一點,再說吧~~看的好痛苦Q.Q" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 211.74.9.2

10/16 23:44, , 1F
謝謝~新手所以亂真抱歉~感謝
10/16 23:44, 1F

10/17 00:21, , 2F

10/17 00:21, , 3F
剩這兩個不會了~謝謝
10/17 00:21, 3F

10/17 06:13, , 4F
把 line 3 line 5 註解掉試試
10/17 06:13, 4F
文章代碼(AID): #1As9Gja8 (C_and_CPP)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1As9Gja8 (C_and_CPP)