Skip to content
Newer
Older
100644 23 lines (20 sloc) 377 Bytes
69ee628 @albertz initial
authored Mar 11, 2012
1 #include <iostream>
2 #include <string>
3
4 using namespace std;
5
6 int main() {
7 int input;
8 while((input = cin.get()) > 0) {
9 char c = (char)input;
10 string o;
11 switch(c) {
12 case 'g': o = "gh"; break;
13 case 'i': o = "ee"; break;
14 case 'a': o = "ah"; break;
15 case 'u': o = "uu"; break;
16 case 'e': o = "eh"; break;
17 default: o = c;
18 }
19 cout << o;
20 cout.flush();
21 }
22 }
Something went wrong with that request. Please try again.