#include<stdio.h>#include<string.h>#include<iostream>using namespace std; int main(){int temp1[256];int i=0;char str[40] = "Battle of the vowels: Hawaii vs. Gronzy";char temp[6] = "aeiou"; for(i=0;i<256;i++) temp1[i] = 0;
i=0;while(temp[i]){ temp1[(int)temp[i]] = 1; i++;} i=0;while(str[i]){if(temp1[(int)str[i]] == 1){ str[i] = -1;} i++;}for(unsigned i=0;i<strlen(str);i++){if(str[i]!=-1)cout<<str[i];}} -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.