Thread: illegal continue?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    3

    illegal continue?

    I'm having a hard time figuring out what's wrong with the continue command.

    can someone help me?



    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]);
    	}
    }
    EDIT: Code tags inserted by moderator.
    Last edited by VirtualAce; 08-15-2010 at 03:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Illegal Case
    By yusko63 in forum C++ Programming
    Replies: 4
    Last Post: 03-26-2010, 11:46 PM
  2. Getting illegal case error
    By scmurphy64 in forum C Programming
    Replies: 2
    Last Post: 09-17-2009, 10:35 AM
  3. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  4. Continue and switch
    By camzio in forum C Programming
    Replies: 10
    Last Post: 10-04-2008, 08:31 AM
  5. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 03:53 PM