#include <string.h> #include <stdio.h> #include <ctype.h> int main(void) { int length, i; char *string = "this is a string"; length = strlen(string); for (i=0; i<length; i++) { string[i] = toupper(string[i]); } printf("%s\n",string); return 0; }
by: 发表于:2017-08-23 16:27:40 顶(0) | 踩(0) 回复
??
by: 发表于:2017-08-23 16:27:40 顶(0) | 踩(0) 回复
??
回复评论