Thread: Word Counting Program Help

  1. #1
    Registered User
    Join Date
    Sep 2005

    Word Counting Program Help

    This is what I have got so far, some sections are missing and I need help with this so anyone can help. It looks simply but I can't figure it out.

    Thank you kindly for any help

    I am attaching the code and the requirements for the program.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    main returns an int.

    This function
      bool EndOfBuffer(lineBufferType buffer)
    // INPUT: buffer
    // PRECOND: None.
    // OUTPUT: <bool>
    // POST: If current character at end of buffer, then returns true,
    //       else, returns false.
    has to return something, like false. (Maybe you want feof()?)

    bool IsLetterChar(char oneChar): isalpha()?

    [edit]Whoops, I'm wrong; removed[/edit]
    Last edited by dwks; 09-14-2005 at 04:38 PM.

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Segfault with Linked List Program
    By kbrandt in forum C Programming
    Replies: 1
    Last Post: 06-23-2009, 07:13 AM
  2. Replies: 2
    Last Post: 12-02-2007, 05:40 AM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  5. Relocation in .obj -files
    By willkoh in forum C++ Programming
    Replies: 6
    Last Post: 04-06-2005, 01:59 PM