strange issue with reading files...
Robert Anderson
rwa000 at gmail.com
Fri Jan 4 11:59:40 PST 2008
On Jan 4, 2008 11:15 AM, rory <rorywalsh 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080104/226=
a3e1b/attachment.htm
More information about the wx-users
mailing list