i got it thanks guys!
i got it thanks guys!
Last edited by dld333; 09-20-2005 at 05:47 PM.
Well that was really fun and all
Edit: Nevermind, he edited post.
Last edited by Tonto; 09-20-2005 at 04:30 PM.
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.
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:
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!Code:bool IsLetterChar(char oneChar) { if((oneChar >= 'a' && oneChar <= 'z') || (oneChar >= 'A' && oneChar <= 'Z')) return true; else return false; }
In ScanNonLetterChars you have a closing parenthesis in the wrong place. That is what is causing your problem.
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 05:06 PM.
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!
Please advise if you see why my program is not adding the last line of words the the table......? Thanks!
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.