作者Beatles5566 (披头56)
看板C_and_CPP
标题[问题] 新手问#include
时间Tue Jun 7 09:37:24 2016
刚学用Dev-C++
对#include这个前置指令一直很纳闷
看范例程式码一开始就会有一堆#include
可是又不会显示它们个别是对应到那些函数
自己搜寻也没有结果:
像是我把#include <ctype.h>这个前置砍掉
後面的isdigit()函数就不能用
可是实际打开ctype.h这个档案 里面又没有出现isdigit
可能有点钻牛角尖 可是还是想请问各位C语言大大
这部分该怎麽去厘清呢?
感谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.228.242.179
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1465263447.A.A14.html
2F:→ aiwhat: 里面有isdigit()啊 06/07 09:47
3F:推 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