[問題] Dev-c++ compiler error --cstdlib..

看板C_and_CPP作者 (空白)時間15年前 (2010/12/21 08:59), 編輯推噓1(103)
留言4則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, Gcc, Linux, ...) dev-c++ 額外使用到的庫(Library Used) (Ex: OpenGL, ...) NO 問題(Question): 最近剛開始用dev-c++平台,但 當我做compile時 我有include #include <cstdlib> 但是它找不到.... 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 1 D:\my_code\main.c cstdlib: No such file or directory. 程式碼(Code): (請善用置底文標色功能) #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { system("PAUSE"); return 0; } 補充說明(Supplement): 請問是我有少了什麼步驟嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.69.97.52

12/21 09:02, , 1F
副檔名先改 .cpp
12/21 09:02, 1F

12/21 09:33, , 2F
thx~
12/21 09:33, 2F

12/23 20:47, , 3F
為啥引入標頭檔後面沒.h?是dev c++可以省略嗎?
12/23 20:47, 3F

12/24 02:32, , 4F
樓上,是c++ 不是 c
12/24 02:32, 4F
文章代碼(AID): #1D3_leNr (C_and_CPP)