Untitled
#include <fstream> #include <iostream> #include <string> using namespace std; //ostream &operator<< (ostream& out,const aboba &a) { // out << a.name << " " << a.surname; // return out; //} /*struct TACHKA { char cvet; int mosh; string marka; string model; int pos; float obiom; int probeg; };*/ int main() { ifstream file("baba.txt"); ofstream res("res.txt"); string a; while (getline(file,a)) { file >> a; if (a[0] == 'A' || a[0] == 'I' || a[0] == 'E' || a[0] == 'O') { res << a<<endl; } } }