consolidate all repos to one for archive
This commit is contained in:
25
semester_2/programiranje_2/primeri/Example32/main.cpp
Normal file
25
semester_2/programiranje_2/primeri/Example32/main.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user