Thread: Function for chek if letter exist

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    Function for chek if letter exist

    Hi ,I wrote this functiont to check for abanded characters ,but it doesnt work
    I need help
    Thanks
    The errors are missing terminating characters
    Code:
    int checkout(char letter)
    {
      char forbiden[20]={'{','}','[',']','(',')','0','1','2','3','4','5','6','7','8','9','+,'-','*','/'};
      int i;
      int numErrors=0;
      for(i=0;i<20;i++)
      {
        if(forbiden[i]!=letter);
        numErrors++;
      }
      return numErrors;
    }
    Last edited by lio; 01-18-2011 at 01:32 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM