Thread: Check for blank spaces in a string

  1. #16
    Registered User
    Join Date
    Apr 2006
    Posts
    47
    Quote Originally Posted by tabstop View Post
    Wait -- you told us it wasn't working, we told you it was; why complain about that when we turn out to be right?
    What are you talking about? I'm thanking you for helping me and then you come back at me like that. Whats up dude? It wasn't working but the logic was correct, I didn't know scanf would stop at a space. I'm telling people who said my logic was wrong, which its not.

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by BENCHMARKMAN View Post
    What are you talking about? I'm thanking you for helping me and then you come back at me like that. Whats up dude? It wasn't working but the logic was correct, I didn't know scanf would stop at a space. I'm telling people who said my logic was wrong, which its not.
    I'm glad I could help, but look at it: I was forced to give three completely wild guesses because you insisted the error had to be in the line of code you provided, which we told you (correctly) it wasn't and said it was in your logic (which it was -- using the wrong tool for the job is a logic error just like everything else), and refused to provide any more context despite being asked five times (posts 2, 3, 8, 9, and 12 in chronological order, for those playing along at home). The fact that one of my guesses turned out to be right does not make your position defensible, it just means I'm a lucky guesser. What I (and others) are trying to do is provide an experience that will make it more likely, the next time you have a question, that you will tell us what's going on instead of making us guess.

  3. #18
    Registered User
    Join Date
    Apr 2006
    Posts
    47
    Quote Originally Posted by tabstop View Post
    I'm glad I could help, but look at it: I was forced to give three completely wild guesses because you insisted the error had to be in the line of code you provided, which we told you (correctly) it wasn't and said it was in your logic (which it was -- using the wrong tool for the job is a logic error just like everything else), and refused to provide any more context despite being asked five times (posts 2, 3, 8, 9, and 12 in chronological order, for those playing along at home). The fact that one of my guesses turned out to be right does not make your position defensible, it just means I'm a lucky guesser. What I (and others) are trying to do is provide an experience that will make it more likely, the next time you have a question, that you will tell us what's going on instead of making us guess.
    I'm not going to argue with you dude, it was more syntactical than logic. Again thanks for the help

  4. #19
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Not to be taken seriously:
    Being a bit more specific never hurts those that have read the words unspecified followed by undefined and implementation defined in every line of text of horridly confusing to humans documents spanning hundreds and hundreds of lines without blinking for hours, ... and survived.

    To be taken seriously:
    Sometimes logic can become quite irrational. Sequence points, in translation units might impose or suffer imposed side-effects from previous sequence points, or subsequent sequence points, in ways that could drive a reasonable person MAD!
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  5. #20
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Quote Originally Posted by BENCHMARKMAN View Post
    So please next time don't tell me something is wrong when its not.
    Get over yourself.
    Mainframe assembler programmer by trade. C coder when I can.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. RicBot
    By John_ in forum C++ Programming
    Replies: 8
    Last Post: 06-13-2006, 06:52 PM
  3. Replies: 4
    Last Post: 03-03-2006, 02:11 AM
  4. Something is wrong with this menu...
    By DarkViper in forum Windows Programming
    Replies: 2
    Last Post: 12-14-2002, 11:06 PM
  5. ........ed off at functions
    By Klinerr1 in forum C++ Programming
    Replies: 8
    Last Post: 07-29-2002, 09:37 PM