字母大写变成小写程序编译错误
#include <stdio.h>main()
{
char uptoflow(char ch);
char ch;
printf("\n enter the letter:\n");
do{
scanf("%c",&ch);
printf("%c - %c \n",ch,uptolow (ch));
}while(ch!='\n');
printf("\n");
}
char uptolow(char ch1)
{
if(ch1>='A'&&ch1<='Z')
ch1=ch1+'a'-'A';
return(ch1);
}
错误提示:
C:\Users\david\Desktop\c\A-a.cpp In function 'int main()':
9 36 C:\Users\david\Desktop\c\A-a.cpp [Error] 'uptolow' was not declared in this scope