#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]); } }
报错了 哪不对呢