??? 04/29/08 05:53 Read: times |
#154146 - problem was wrong method used Responding to: ???'s previous message |
Dear George,
I read your problems. I felt method of declaration(syntax) was incorrect. In your second attempt you have used " , for a single character try using ' instead (many compilers fails if u do it other way) In your first attempt you are having {} within another {} which is fine with 2D arrays but by declaration u have a 1D array. try to change declaration to 1 of the following const unsigned char font[][] const unsigned char font[m][n] (here in place of 'm' & 'n' write no of rows & columns.) or remove all inner {} & keep declaration same. All the BEST |
Topic | Author | Date |
Problem with arrays (atmel 8052) | 01/01/70 00:00 | |
What compiler? | 01/01/70 00:00 | |
Strange way of declaring a font. | 01/01/70 00:00 | |
Why is it strange? | 01/01/70 00:00 | |
what compiler? | 01/01/70 00:00 | |
I'm using Keil uVision 3 | 01/01/70 00:00 | |
That's not a Compiler... | 01/01/70 00:00 | |
Yeah, I ment Keil C51 - doesnt support 2D arrays? | 01/01/70 00:00 | |
Not valid syntax | 01/01/70 00:00 | |
Andy I think you want a semi-colon at the end | 01/01/70 00:00 | |
True:![]() | 01/01/70 00:00 | |
Too large | 01/01/70 00:00 | |
Almost there! | 01/01/70 00:00 | |
Warning | 01/01/70 00:00 | |
Thanks you VERY VERY much! | 01/01/70 00:00 | |
You are welcome! | 01/01/70 00:00 | |
The number of dimensions is incorrect | 01/01/70 00:00 | |
problem was wrong method used | 01/01/70 00:00 |