Else Problem

This is a discussion on Else Problem within the C++ Programming forums, part of the General Programming Boards category; I'm using Borland C++. How would I do an else if(...) and make it so it didn't equal any of ...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question Else Problem

    I'm using Borland C++. How would I do an else if(...) and make it so it didn't equal any of the variables?

  2. #2
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Word

    And I stress the word MULTIPLE variables... plural... even if it's not there thats what I ment

  3. #3
    Unregistered
    Guest
    use boolean in your if statmenets im assuming thats what your asking for....

    || = or
    &&= and

    else if ((count==20)||(count==40))

  4. #4
    Unregistered
    Guest
    or this might be what you want

    else if ((count!=20)||(count!=40))

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21