Hey, I was trying to create a string that had a random sequence of letters, but when I try it, it completes the string, and then displays an error report message.
Ah! Changing the generateFileTitle to void fixed it. strange. Thanks for the assistance to all. And that does simplify the random generation a lot. Didn't know it worked with characters. Thanks again.
Here's a secret: ASCII values (and unicode values I guess...) have numerical values associated with them. 'a' is synonomous to an 8-bit variable holding the value 97. So, random = rand () % 26 + 'a'; has the same functionality as your entire generateLetter() function.
Aside from that, it seems to work: http://liveworkspace.org/code/vIPQm$0
Example of improved version: http://liveworkspace.org/code/vIPQm$6
EDIT: Well, I left this post while there were no replies and when I submit, there's five saying the exact same thing. Oh well, left for educational purpose...