Thread: syntax question

  1. #1
    Registered User
    Join Date
    Oct 2002

    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
    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)

    GCC on Red Hat 8.1 (Primary)
    GCC on Mac OS X 10.2.4 (Secondary)

    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
Website Security Test