About outputting Ascii Characters

Mar 14, 2015 at 9:52pm
ii
Last edited on Mar 18, 2015 at 11:13pm
Mar 14, 2015 at 11:11pm
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.
Mar 15, 2015 at 1:31am
try
 
(char) 178;
Mar 15, 2015 at 5:00am
First try creating an array. Here is an example of an array.

datatype arrayname[size][anothersize] //Hey we did it! (2D-Array)
Mar 15, 2015 at 8:34pm
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.