Re: C programmer wanted
[Prev][Next][Index][Thread]
Re: C programmer wanted
Thomas J. Hruska wrote:
>
> This is related to TI-82 programming (creating worlds for games).
>
> Rats! I can't find my C programmer's manual. Can somebody tell me how to
> get non-ascii characters into a string (i.e. using \x##)?
>
> char Ditty = "ABCDEFGHI \x## ";
>
> TIA
>
> Thomas J. Hruska -- thruska@tir.com
> Shining Light Productions -- "Meeting the needs of fellow programmers"
> http://www.geocities.com/SiliconValley/Heights/8504
> http://shinelight.home.ml.org
the way you have set up your variable Ditty, it will only store the 1st
character...in this case 'A'. To store a string, you have to make your
variable a 1 dimentional array of characters:
char Ditty[30] = "ABCDEFGHI \x## ";
Hopes this helps
-Art
References: