#include<stdio.h>
char upper(char c)
{
return c-32;
}
void fun(char str[],int n,int i)
{
if(i<n)
printf("upper(str[n-i-1]),str[i]");
}
void main()
{
printf("输入一串小写字母(用空格隔开):\n");
scanf("%c\n",str[n]);
char s=fun(str[],n,i+1);
printf("upper(str[n-i-1]),str[i]");
}
纯C语言:递归小写转大写源码
最新推荐文章于 2021-11-29 00:11:22 发布