codeforces水题100道 第二十二题 Codeforces Beta Round #89 (Div. 2) A. String Task (strings)

题目链接:http://www.codeforces.com/problemset/problem/118/A
题意:字符串转换……
C++代码:

#include <string>
#include <iostream>
using namespace std;
string s;
bool _in(char c, string s)
{
    for (int i =0 ; i < s.length(); i ++)
        if (c == s[i])
            return true;
    return false;
}
int main()
{
    cin >> s;
    int len = s.length();
    for (int i = 0; i < len; i ++)
    {
        char c = s[i];
        if (c >= 'A' && c <= 'Z')
            c += 32;
        if (_in(c, "aeiouy"))
            ;
        else
            cout << "." << c;
    }
    return 0;
}
C++
原文地址:https://www.cnblogs.com/moonlightpoet/p/5689423.html