Thread: Help with program clearing white space.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    12
    i understand what != is and == but this is what i dont understand .
    Code:
     if(!(str1[c] == ' '&& str1[c+1] == ' '))
    the (!(str1 is whats throwing me off. i know im asking that if str1 has a space then do this. but the if(! is what i dont get.
    Last edited by chumpp; 07-31-2012 at 10:07 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strings and white space
    By ginom71 in forum C Programming
    Replies: 13
    Last Post: 07-12-2009, 09:48 AM
  2. remove white space
    By pokemon in forum C Programming
    Replies: 12
    Last Post: 03-10-2009, 03:12 PM
  3. white space and fscanf
    By DMaxJ in forum C Programming
    Replies: 2
    Last Post: 06-10-2003, 09:18 AM
  4. File I/O (white-space)
    By yougowego in forum C++ Programming
    Replies: 2
    Last Post: 10-26-2001, 10:35 PM