[ create a new paste ] login | about

Link: http://codepad.org/Fz4QHzH1    [ raw code | fork ]

C++, pasted on May 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream.h>

int main ()
{
  char str[256];
  const char glas[] = "aeiouy";
  cin >> str;
  for (int i = 0; str[i]; i++)
    for(int j = 0; glas[j]; j++)
      if (str[i] == glas[j])
      {
        cout << str[i];
        break;
      }
  cin.ignore();
  cin.get();
  return 0;
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: