Untitled

 avatar
unknown
plain_text
2 years ago
390 B
3
Indexable
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main()
{
    ifstream in("func.txt");
    ofstream out("result.txt");
    
    string str;

    while (getline(in, str))
    {
        in >> str;
        if (str[0] == 'A' || str[0] == 'E' || str[0] == 'I' || str[0] == 'O' || str[0] == 'Y' || str[0] == 'U') cout << str << endl;
    }
}
Editor is loading...