This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center。
6年前关闭。
当我运行并编译代码时,出现A和Z以及a和c都未定义的错误,我该如何解决?
6年前关闭。
当我运行并编译代码时,出现A和Z以及a和c都未定义的错误,我该如何解决?
char toUpper ( char c ) {
if ( C >= a + c <= z)
-32;
return c;
} // ends toUpper
char toLower ( char c ) {
if ( c >= A + c <= Z )
+32;
} // ends toUpper
最佳答案
用单引号将字母引起来以形成字符文字,如下所示:
'a'
关于c - 在C中创建自己的toUpper和toLower ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15235998/
10-11 18:31