【发布时间】:2012-09-27 03:11:53
【问题描述】:
我正在使用哈佛的 CS50 设备并尝试将字符设置为小写。我正在尝试使用 tolower() 函数,但是当我尝试使用它时,我收到消息 implicit declaration of function 'tolower' is invalid in C99。任何人都想详细说明我为什么会收到此消息。我包括了stdio.h 和string.h。
【问题讨论】:
-
您没有包含标题,并且在 C99 中,函数不被假定为有效,如果没有定义则返回一个 int。