Originally posted by Frank Carver: and move the definitions of
to inside the "while" loop where they are used.
Surely this will mean that you will initialize the strings every time the loop is "executed'. Why do you suggest that he moves it into the loop. Thanks for sharing you obvious in depth knowledge by the way. JdJ
Thanks for the comments. I'm equally amazed that you are re-reading old messages from over a year ago! In the case you mention, both strings are never used with their default initialized values. If you follow the code down, looking for the first use of each of the two variables, the first use is when they are set. So a better use would be something like:
At first I though you did not answer my question, then I printed it out compared your code with the original line for line, and the penny droped. This was what you meant in your original comment to Jamie, intialize via the input you get from the user and not simply do this :
Man I'll be watching out for you and learning from you Thanks JdJ [This message has been edited by Johannes de Jong (edited March 01, 2001).]
My honeysuckle is blooming this year! Now to fertilize this tiny ad: