看板 C_and_CPP 關於我們 聯絡資訊
剛學用Dev-C++ 對#include這個前置指令一直很納悶 看範例程式碼一開始就會有一堆#include 可是又不會顯示它們個別是對應到那些函數 自己搜尋也沒有結果: 像是我把#include <ctype.h>這個前置砍掉 後面的isdigit()函數就不能用 可是實際打開ctype.h這個檔案 裡面又沒有出現isdigit 可能有點鑽牛角尖 可是還是想請問各位C語言大大 這部分該怎麼去釐清呢? 感謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.228.242.179 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1465263447.A.A14.html
aiwhat: 裡面有isdigit()啊 06/07 09:47
springman: 我都只查 reference,看需要 include 什麼。 06/07 09:49
感謝 剛剛找到了 是 ctype.h 裡面有 #include <tr1/cctype> cctype 裡面有 isdigit() 推實用網站 ※ 編輯: Beatles5566 (61.228.242.179), 06/07/2016 09:58:55