将判断语句改成了这个。OK了!!
if(strcmp(strlwr(city),"new york")==0||strcmp(city,"纽约")==0)
我觉得编程序应该一切以人为本。为用户着想才正确。尽量智能化,虽然我才学了半个月,不过,以后再编什么程序。都尽量多考虑各种情况发生的。谢谢各位的帮助啊!!
----------------解决方案--------------------------------------------------------
以下是引用触电在2006-9-12 20:27:59的发言:
int tolower(
int c
);
Parameters
c
Character to convert.
Return Value
Each of these routines converts a copy of c, if possible, and returns the result. There is no return value reserved to indicate an error.
仁兄要是小学水平,我恐怕还在学前班呢,我E文不好,虽然正在刻苦学习E文中,但是还是没看懂意思!!
----------------解决方案--------------------------------------------------------
我当然不是什么小学毕业..只是随便说说...
其中有写深刻的含义罢了
----------------解决方案--------------------------------------------------------