#include
#include
#include
void convert(char * befor_ch);
int main(void)
{
int i;
char str[80];
gets(str);
printf("原始自符串 => %s\n" ,str);
printf("使用库存函数-自符串 =>");
for(i=0;str[i]!='\0';i++)
{
printf("%c" ,tolower(str[i]));
}
printf("\n");
convert(str);
system("PAUSE");
return 0;
}
void convert(char * befor_ch)
{
int i;
printf("使用副程式-自符串 =>");
for(i=0;befor_ch[i]!='\0';i++)
{
if(befor_ch[i] >= 'a' && befor_ch[i] = 'A' && befor_ch[i]