Word Counting Program Help

This is a discussion on Word Counting Program Help within the C++ Programming forums, part of the General Programming Boards category; This is what I have got so far, some sections are missing and I need help with this so anyone ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    2

    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.
    Attached Files Attached Files

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    main returns an int.

    This function
    Code:
    //=====================================================================
      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 05:38 PM.
    dwk

    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: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    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, 08: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, 01: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, 02:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21