??? 04/23/08 16:18 Read: times |
#153892 - Strange way of declaring a font. Responding to: ???'s previous message |
You would normally set up a two dimensional array so that you can access each font character by an index.
Your first syntax is perfectly fine. I see no reason for a compiler complaining about the size of the array. You just have a big array of meaningless bytes. Your program will have to index into it by itself. You appear to be initialising a char font[6][26] array. If you want it as single dimension, then remove all the inside braces. I would normally expect a font[26][6] array. But I suppose you can always access it how you like. David. |
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 |