syntax question

This is a discussion on syntax question within the C++ Programming forums, part of the General Programming Boards category; If you have a bunch of if statements saying if somthing does not equal somthing else do this. Then later ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    73

    syntax question

    If you have a bunch of if statements saying if somthing does not equal somthing else do this. Then later on in the same string can you say if somthing does equal something else? Juz wondering.

  2. #2
    Rebooted Inquirer's Avatar
    Join Date
    Apr 2002
    Posts
    281
    like "if char one is 'i' and char three isn't ' ' or strcmp(chars,"inquirer rocks")?

    Yes, you can.

    (In fact, if you can dream it, you can probably do it. just the ease of doing it is the drawback)

    ~Inquirer
    Compilers:
    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    Others:
    MinGW on XP

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Syntax question: &(++x)
    By yoshiznit123 in forum C Programming
    Replies: 8
    Last Post: 06-02-2006, 10:40 PM
  2. using c++ in c code
    By hannibar in forum C Programming
    Replies: 17
    Last Post: 10-28-2005, 09:09 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 03:49 AM

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