strange issue with reading files...
rory
rorywalsh at gmail.com
Sat Jan 5 04:06:45 PST 2008
On Jan 4, 9:59 pm, rwa... at gmail.com ("Robert Anderson") wrote:
> On Jan 4, 2008 11:15 AM, rory <rorywa... at gmail.com> wrote:
>
>
>
> > > Did you compare the contents of buf and the value of pos in your
> > reference
> > > (command line) implementation with your wx implementation? Are they
> > > identical?
>
> > > Bob
>
> > pos seems to be the same but the contents of buf are not
>
> That doesn't make much sense, since pos is derived from buf. Did atoi(buf)
> return something non-zero in the reference implementation?
>
> I would suggest cout'ing all of your intermediate results in the reference
> implementation and comparing the results one step at a time until you find
> the first point of discrepancy. This will also tell you if your reference
> implementation is really doing what you thought it was.
>
> Bob
Thanks Bob, I will do that and post the results once I get a chance.
Rory.
More information about the wx-users
mailing list