About outputting Ascii Characters

ii
Last edited on
when I output however it won't display in a array as a value, however it does output outside the array.


is 'game' an array of ints or of chars?

If you try to print 178 as an int, it will print the number 178.
If you try to print 178 as a char, it will print whatever character code 178 maps to.
try
 
(char) 178;
First try creating an array. Here is an example of an array.

datatype arrayname[size][anothersize] //Hey we did it! (2D-Array)
sorted it, it was a int array as opposed to a char and I tried using both at once, thus the conflict arising


thanks for all the help
Topic archived. No new replies allowed.