Converting from integer value to character?
I''m working on this little message thing for my game, and I stumbled across my first obstacle. How do I convert int into char? I don''t want if/else like if i % 10 = 9 then c = ''9''.
I want this:
DrawMessage("SomeMessage");
DrawMessage(someIntVariable);
Is this even possible? If so, then I want to do this also:
DrawMessage("SomeMessage" + someIntVariable);
quote:none of those things should work, as they make char ARRAYS.
What making a string out of say 25 is bad? Do you have another way of doing it?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement