I'm having a hard time figuring out what's wrong with the continue command.
can someone help me?
EDIT: Code tags inserted by moderator.Code:#include<iostream> using namespace std; void main() { char buffer[81]; int i; cout<<"Enter a line of text and press Enter key:"; cout<<"\nAll the vowels will be discarded!\n"; cin>>buffer; for (i=0;buffer[i]!='\0';i++); { if ((buffer[i]=='a')||(buffer[i]=='e')||(buffer[i]=='i')||(buffer[i]=='o')||(buffer[i]=='u')) continue; putchar(buffer[i]); } }