Thread: Need help on finding word count

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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.

  2. #2
    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.

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