Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用isDigit()具有正确包含语句的函数,#include <ctype.h>但是,编译时似乎收到警告,
isDigit()
#include <ctype.h>
warning: implicit declaration of function 'isDigit' is invalid in C99 [-Wimplicit-function-declaration]
编译警告的行是if(isDigit(atoi(inputLine)) {任何人都可以就我在这里缺少的内容给我反馈吗?谢谢。
if(isDigit(atoi(inputLine)) {
在你的程序中包含这个头文件:#include<ctype.h>
函数的名称是isdigit(),不是isDigit()。C 区分大小写。
isdigit()