Infinite Looping Program Prob's

This is a discussion on Infinite Looping Program Prob's within the C++ Programming forums, part of the General Programming Boards category; i got it thanks guys!...

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

    Infinite Looping Program Prob's

    i got it thanks guys!
    Last edited by dld333; 09-20-2005 at 06:47 PM.

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Well that was really fun and all
    Edit: Nevermind, he edited post.
    Last edited by Tonto; 09-20-2005 at 05:30 PM.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    32
    Sorry about first post, I have problems..

    Please advise if you have any ideas of how I can get rolling on this prog, I'm stuck!

    Thanks.

  4. #4
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Well, you mention you need help but not with what. You dump all this code on us and say "fix it", but we have no idea where you are having problems, and have little motivation to seek them out (aka: do your homework). The only thing I saw "wrong" was your unnecessarily verbose IsLetterChar function, which you can simply down to:

    Code:
    bool IsLetterChar(char oneChar)
    {
    	if((oneChar >= 'a' && oneChar <= 'z') || 
    	   (oneChar >= 'A' && oneChar <= 'Z'))
    		return true;
    	else 
    		return false;
    }
    Feel free to elaborate on where you are having problems and what you tried with your program, and you will be greeted with much more informative answers. Ask Smart Questions!

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    In ScanNonLetterChars you have a closing parenthesis in the wrong place. That is what is causing your problem.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    32
    Thanks Tonto, and sorry first time poster (and a little retarded at that).

    Problem:
    described below.


    Thanks!

    Tonto, may I email you?
    Last edited by dld333; 09-20-2005 at 06:06 PM.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    32
    Daved - THANKSS!! That was my loop problem!

    Newest problem:

    It is working fine except: It is not counting the last line in the input file!
    Can anyone see why?!

    Thanks!

  8. #8
    Registered User
    Join Date
    Sep 2005
    Posts
    32
    Please advise if you see why my program is not adding the last line of words the the table......? Thanks!

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,824
    If you've got a new question - start a new thread.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newb question: probs with this program
    By ajguerrero in forum C Programming
    Replies: 5
    Last Post: 04-19-2006, 09:04 AM
  2. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  3. Replies: 29
    Last Post: 10-25-2005, 10:46 PM
  4. prog !feof probs
    By @licomb in forum C++ Programming
    Replies: 3
    Last Post: 08-24-2001, 07:44 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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