Thread: Need help on finding word count

  1. #31
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Well you posted an answer at #6, so we can quarrel about who's wrong because someone let the cat out of the bag, if you want.

    Personally, I think you need to grow up and accept that code that you post in public will be talked about. You opened the door to that, but don't like what you see on the other side, ok...

  2. #32
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by whiteflags View Post
    Well you posted an answer at #6, so we can quarrel about who's wrong because someone let the cat out of the bag, if you want.

    Personally, I think you need to grow up and accept that code that you post in public will be talked about. You opened the door to that, but don't like what you see on the other side, ok...
    that was for you and only you. just like you intended what you did for me ( i am assuming) and only me. but by someone elses standards it is for the OP.

    and you last statement is you side tracking my point about giving out answers to peoples questions in here is considered a no no. Make them figure it out for themselves. Might as well not even ask the question.

    that is apples and oranges.

    Like I stated about that code of mine. it is the reason it is the way it is, and not an excuse, I just wrote it tested it with what I showed you more than once and it still worked, so I put it away and forgot about because I have no intentions of every using it whatsoever, never, then you spoke up about what you said so I posted then got attack for all of it and not just that one little bit.

  3. #33
    Banned
    Join Date
    Aug 2017
    Posts
    861
    @ the both of you, whiteflags, Hodor


    I find this so very very like OP posted code.

    C program to search all occurrences of a word in given string - Codeforwin

    it's even is using gets

  4. #34
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by userxbw View Post
    that was for you and only you. just like you intended what you did for me ( i am assuming) and only me. but by someone elses standards it is for the OP.
    You're being unrealistic if you seriously think that makes a difference. What I had posted at the time was about fixing how you used fgets() because apparently that was something you missed. I never asked you how you were doing it. You then decided, with basically no prompting, to post something completely different from the OP's code, saying that you rewrote it.

    and you last statement is you side tracking my point about giving out answers to peoples questions in here is considered a no no. Make them figure it out for themselves. Might as well not even ask the question.
    Yeah and I'm blaming you so enjoy playing your god damn gotcha game.

    You always start your own problems here.

  5. #35
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by whiteflags View Post
    You're being unrealistic if you seriously think that makes a difference. I never asked you how you were doing it. You decided, with basically no prompting, to post something completely different from the OP's code, saying that you rewrote it.

    What I had posted at the time was about fixing how you used fgets() because apparently that was something you missed.


    Yeah and I'm blaming you so enjoy playing your god damn gotcha game.

    You always start your own problems here.
    I make the point showing you that you are doing what you tell me not to do, give the answer on how to do something.
    which you have done in here. and else where no difference.
    you're just deflecting

    ps rationalization and justification. .
    transferring blame
    Last edited by userxbw; 11-13-2017 at 10:17 PM.

  6. #36
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I make the point showing you that you did what i told you not do, give the answer on how to do something.
    which you have done in here.
    you're just deflecting

    ps rationaliization and justification
    and transferring blame.
    Last edited by whiteflags; 11-13-2017 at 10:18 PM.

  7. #37
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by whiteflags View Post
    I make the point showing you that you did what i told you not do, give the answer on how to do something.
    which you have done in here.
    you're just deflecting

    ps rationaliization and justification
    and transferring blame.
    if it wasn't Monday I'd wish you a happy weekend.
    Quote Originally Posted by whiteflags
    Yeah and I'm blaming you
    I am not blaming anyone just pointing out stuff.

  8. #38
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    The thing is, I'm not a purist. You clearly don't care about what I told you at all, so, after you post complete solutions, you expect me to continue to talk like there is something to figure out. Why? Whatever, I'm not going to do it. You've made that whole journey of progress pointless with your actions.

    See you in the next thread, when you post lightly tested code with errors, and then get mad when someone points out those errors.

  9. #39
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by whiteflags View Post
    The thing is, I'm not a purist. You clearly don't care about what I told you at all, so, after you post complete solutions, you expect me to continue to talk like there is something to figure out. Why? Whatever, I'm not going to do it. You've made that whole journey of progress pointless with your actions.

    See in the next thread, when you post lightly tested code with errors, and then get mad when someone points out those errors.
    C program to search all occurrences of a word in given string - Codeforwin



    sidebar
    again with the apples and oranges.

    I don't understand why you thought what I posted being that rewritten code was to give you something else to fix or talk about. OK I failed to test it like I was actually going to use it for something useful as I see no use in it.

    I cannot think of what anyone would use a program that can do that for them. that spell checker thing in here yeah that is useful. count how many times a certain word was used in a sentence is just because someone can code it to do that. keeping in mind that is my option at this moment in my life. maybe just maybe someone that is caught up in statistics might find it useful. but I do not.

    that still has nothing to do with the point I made. apples and oranges here. I hope you can see that. I just took the opportunity to point out what you are doing and telling me not to is all.

    ps "next thread? a little more information pls.

    edit
    you mean this
    Made a program to find either POSIX new lines or Windows newlines


  10. #40
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I don't understand why you thought what I posted being that rewritten code was to give you something else to fix or talk about.
    No, before that you posted the OP's code with slight modification, specifically using fgets() instead of gets(), which is right, except that your modification left newlines in the string. I made a post alerting you to this, and then your response to this was to post another solution that you "rewrote." Apparently, you thought that this made the problem with fgets() irrelevant... even though, at the time, as folks pointed out, you used a method that depended on strlen() which could truncate data. All of this was glossed over as nit picking, and you probably still think it is, but I am just rehashing for the sake of understanding.

    ps "next thread? a little more information pls.
    We both know that this will happen again. You will post some code with errors and get mad when people point out those errors.

  11. #41
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Quote Originally Posted by whiteflags View Post

    We both know that this will happen again. You will post some code with errors and get mad when people point out those errors.
    you just showed your cards.

    while still deflecting my point.

  12. #42
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    948
    userxbw, if this is the kind of attitude you have when other people point out flaws in your programs, you're not going to make it very far as a programmer. Everyone makes mistakes, but accepting corrections gracefully is how you learn from your mistakes.

    This forum is not just for you to post your buggy code and expect nobody to point out the bugs. It's for helping people improve their programming abilities and learn how to avoid the very types of bugs that you post in your "solutions". Posting buggy code and then getting butthurt when people point out the bugs (with ways to fix them) does not help anybody.

    Besides, if you "did not intend it for anyone other then me", as you said, then why are you posting it on a public forum? You could just as easily (more easily, I would argue) leave it to rot and die on your own hard drive without inflicting it and your misdirected anger on this forum.

  13. #43
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Quote Originally Posted by christop View Post
    Everyone makes mistakes, but accepting corrections gracefully is how you learn from your mistakes.
    Quote Originally Posted by christop View Post
    Posting buggy code and then getting butthurt when people point out the bugs (with ways to fix them) does not help anybody.
    O_o

    I hope everyone sees the fun in those comments.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Uppercase/Lowercase/Word COunt/Char count
    By Charak in forum C Programming
    Replies: 7
    Last Post: 02-23-2011, 08:16 AM
  2. word count help
    By regimental in forum C Programming
    Replies: 7
    Last Post: 03-05-2010, 08:47 AM
  3. Again Character Count, Word Count and String Search
    By client in forum C Programming
    Replies: 2
    Last Post: 05-09-2002, 11:40 AM
  4. word count
    By gokila in forum C Programming
    Replies: 2
    Last Post: 02-19-2002, 01:35 PM

Tags for this Thread