Re: I think I'm gonna cry. (or newby problems with simple string function)
- From: robbie.carlton@xxxxxxxxx
- Date: 30 Sep 2005 01:40:45 -0700
Thanks for all the responses.
Start being assigned to 0 in the loop was very stupid and due to late
night brain fever, it is supposed to be start = i in the loop. Yes I
wanted ||, not |, although doesn't | do the same thing in this case?
Anyway, I've fixed these two, and I'm still getting the same error.
Yes I know the duplication is ugly. I wanted to get a naive
implementation working and then factor it out, but the 'naive' version
is turning out harder than I thought.
The reason istax is a seperate function is because the definition of
token delimiters is likely to change, so I wanted it to be in one place
(and yes, I know I don't use it in counttokens. counttokens came first
and I forgot to factor it out)
As to the many non-standard c things I've done, thanks for pointing
them out. I've been spoilt by a very forgiving compiler (gcc,
presumably doing c++ on the side) which just isn't shouting at me about
it. I'm going to fix all these mistakes, and repost the code.
Thanks peter for the working code. I'll probably end up using that as
it's much neater than what I've been doing, but I'd like to get mine
working so I understand what's wrong with it.
.
- Prev by Date: performing a "deep copy" on a nested structure
- Next by Date: Re: A[x][y][z]
- Previous by thread: Re: I think I'm gonna cry. (or newby problems with simple string function)
- Next by thread: Re: Detecting Reads of Global Uninitialized Variables
- Index(es):
Relevant Pages
|