快速切题 cf118A

这教导人们一定要看题,要看题,元音包含了‘y’,完毕,要看题啊

#include <cstring>
#include <cstdio>
#include <cctype>
using namespace std;
char buff[1001];
int main(){
    scanf("%s",buff);
    for(int i=0;buff[i];i++){
        buff[i]=tolower(buff[i]);
        if(buff[i]=='a'||buff[i]=='o'||buff[i]=='i'||buff[i]=='e'||buff[i]=='u'||buff[i]=='y'){continue;}
        else {
            printf(".%c",buff[i]);
        }
    }

    printf("\n");
    return 0;
}

  

posted @ 2014-08-12 21:20  雪溯  阅读(139)  评论(0编辑  收藏  举报