标签:des style color os io 文件 for ar div
5 Association for Computing Machinery Institute of Electrical and Electronics Engineers SUN YAT SEN UNIVERSITY The Lord of the Rings netease
ACM IEEE SYSU LR N
#include<stdio.h> #include <string.h> int main() { int t,i,j,len,k; char a[200],c[200]; scanf("%d",&t); getchar(); while(t--) { gets(a); len=strlen(a); i=0; k=0; while(i<len) { j=0; while(a[i]==' ') i++; while(a[i]!=' '&&a[i]) { c[j]=a[i]; i++; j++; } c[j]='\0'; k=strlen(c); strupr(c); // 转换大写字符串 ,需要VC编译器提交 头文件 string.h if(!(k<3||strcasecmp("AND",c)==0||strcmp("FOR",c)==0||strcmp("THE",c)==0)) { putchar(c[0]); } /* c[j]='\0'; k=strlen(c); //strcasecmp 不分大小写比较 头文件 string.h if(!(k<3||strcasecmp("AND",c)==0||strcasecmp("FOR",c)==0||strcasecmp("THE",c)==0)) { putchar(toupper(c[0])); } */ } printf("\n"); } return 0; }
标签:des style color os io 文件 for ar div
原文地址:http://blog.csdn.net/ruruoran/article/details/38844833