Untitled
unknown
plain_text
3 years ago
434 B
6
Indexable
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
using namespace std;
int main() {
ifstream in("func.txt");
ofstream out("result.txt");
char mas[12] = { 'A','a','E','e','I','i','O','o','U','u','Y','y' };
string h;
int c;
in >> c;
int flag = 0;
for (int i = 0; i < c; i++){
in >> h;
for (char j:mas){
if (h[0] == j) {
out << h << '\n';
break;
}
}
}
}Editor is loading...