26 lines
475 B
C++
26 lines
475 B
C++
#include <iostream>
|
|
#include <fstream>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
char ch;
|
|
std::ifstream in;
|
|
std::ofstream out;
|
|
in.open("a.txt");
|
|
out.open("b.txt");
|
|
if (!in.good()) {
|
|
std::cout << "File doesn't exist" << std::endl;
|
|
return 0;
|
|
}
|
|
while (!in.eof()) {
|
|
ch = in.get();
|
|
if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
|
|
ch = '*';
|
|
out.put(ch);
|
|
}
|
|
in.close();
|
|
out.close();
|
|
return 0;
|
|
}
|
|
|