Some weird error comes up after I enter a string. Any help would be appreciated. What I have so far:
#include <stdio.h>
#include <string.h>
void main()
{
int i;
char line[100];
printf("Enter a string: \n");
gets(line);
for (i = 0; line[i] != '\0'; i++)
{
if (line[i] == 'a' || line[i] == 'e' || line[i] == 'i' || line[i] == 'o' || line[i] == 'u' || line[i] == 'A' || line[i] == 'E' || line[i] == 'I' || line[i] == 'O' || line[i] == 'U')
{
puts(line[i]);
}
}
system("pause");
}