13.4练习题5
作者:互联网
#include<stdio.h> #include<ctype.h> #define N 20 void capitalize(char a[],int N+1 ); int main() { int i; char a[N] = "Asawdw1123,."; capitalize(a,10); for(i=0;i<(N+1);i++) { printf("%c",a[i]); } } void capitalize(char a[], int N+1) { int i; for(i=0;i<(N+1);i++){ a[i]=toupper(a[i]); } }
报错了 哪不对呢
标签:练习题,int,char,报错,13.4,include,capitalize 来源: https://www.cnblogs.com/migangchong/p/15862608.html