[Solved] Converting a string to ASCII
General and Desktop
17
Posts
3
Posters
17.9k
Views
1
Watching
-
-
croussou: You're looping through each character one at a time, and then setting random to be the result of the latest character. It is only after the loop ends that you set your text. At that point it would only contain the last character's value, not a composite of the entire run.
-
[quote author="mlong" date="1330371542"]bq. isn’t post increment a little slower than pre increment? :)
In this case, I don't think it would make a huge difference. :)[/quote]
Well, I agree that it is not a problem in this case. However, it shall be a little slower :-)
I guess for most it is more or less a matter of taste. I personally prefer pre increment and use post increment when I have to.