#include <stdio.h>#include<string.h>#include<malloc.h>int main(){? ? int n,l,t=0,i=0;? ? char s[200];? ? scanf("%d",&n);? ? int* ptd[100];? ? while(i<n)? ? {? ? ? ? scanf("%s",s); ?//gets(s);? ? ? ? l = strlen(s);? ? ? ? for(t=0;t<l;t++)? ? ? ? {? ? ? ? ? ? if('A'<=s[t]&&s[t]<'Z')? ? ? ? ? ? s[t] = s[t]+32;? ? ? ? ? ? else if('a'<=s[t]&&s[t]<'z')? ? ? ? ? ? s[t] = s[t]-32;? ? ? ? }? ? ? ? ptd[i]="s";? ? ? ? i++;? ? }? ? for(t=0;t<n;t++)? ? printf("%s",*ptd[t]);? ? return 0;}
- 5 回答
- 0 關注
- 1653 瀏覽
添加回答
舉報
0/150
提交
取消