[Tutor] reiterative programming

Alan Gauld alan.gauld at blueyonder.co.uk
Mon Oct 27 17:46:48 EST 2003


> No, I want the hex version of the ASCII representation. 

Oh, OK.

However the other points about the string representation
should still apply:

> > For some reason that I don't understand, when the returnedval
> > is '0x4', it does the loop again
>
> Because '0x4' is not the same as '\0x4'!
>
> You need to be very clear about what you actually want to compare
> with what, and then check the actual format you are using.
> The >>> prompt is your friend.


Alan G.






More information about the Tutor mailing list