Re: I cant do change string to int.
- From: James Kuyper <jameskuyper@xxxxxxxxxxx>
- Date: Mon, 12 Nov 2007 11:56:16 GMT
santosh wrote:
In article <871wawzm9a.fsf@xxxxxxxxx>, Ben Bacarisse....
<ben.usenet@xxxxxxxxx> wrote on Sunday 11 Nov 2007 11:40 pm:
there is a 'z=1;' in there. Proof, if it were needed, that good names
and good layout are important. The code is uninviting so I have not
had a look at it.
Ah yes. Good spot. However it comes _after_ the if/else construct so
it's of no consequence to it.
It's defined outside of a loop, and both set and tested inside the loop. If it's set in the first pass through the loop, the else clause should be triggered on the following pass. I still haven't bothered looking closely at this code, so I'm not sure what's wrong with it, but the fact that z is first set to a non-zero after the first time it's value is tested isn't in itself sufficient explanation.
.
- References:
- I cant do change string to int.
- From: emre esirik(hacettepe computer science and engineering)
- Re: I cant do change string to int.
- From: Chris Dollin
- Re: I cant do change string to int.
- From: emre esirik(hacettepe computer science and engineering)
- Re: I cant do change string to int.
- From: santosh
- Re: I cant do change string to int.
- From: Ben Bacarisse
- Re: I cant do change string to int.
- From: santosh
- I cant do change string to int.
- Prev by Date: C programmes
- Next by Date: Re: How would you resolve this symbol conflict?
- Previous by thread: Re: I cant do change string to int.
- Next by thread: Re: I cant do change string to int.
- Index(es):
Relevant Pages
|