??? 01/12/05 01:20 Read: times |
#84801 - 2D Array problem Responding to: ???'s previous message |
Mikkel C. Simonsen said:
One of the files also includes this declaration:
rom char key_tbl[][] = { { K04, K03, K02, K01 }, // row 0 { K08, K07, K06, K05 }, // row 1 { K12, K11, K10, K09 }, // row 2 { K16, K15, K14, K13 }, // row 3 }; I had to change the first line to code char key_tbl[16][4] = { The original definition is incorrect! The compiler cannot deduce both dimensions of 2D array - you must specify at least the 2nd dimension. But why did you chose 16? This is a 4x4 array: code char key_tbl[][4] = { { K04, K03, K02, K01 }, // row 0 { K08, K07, K06, K05 }, // row 1 { K12, K11, K10, K09 }, // row 2 { K16, K15, K14, K13 }, // row 3 }; We shall have to have a word with Philips... |
Topic | Author | Date |
Philips sample code/Keil problems | 01/01/70 00:00 | |
Why don't you ask Philips? | 01/01/70 00:00 | |
Re: Why don't you ask Philips? | 01/01/70 00:00 | |
Re: Ask Philips? | 01/01/70 00:00 | |
Re: Ask Philips? | 01/01/70 00:00 | |
Link | 01/01/70 00:00 | |
Re: useful App Note | 01/01/70 00:00 | |
87 89 | 01/01/70 00:00 | |
Re: 87 89 | 01/01/70 00:00 | |
Tasking. | 01/01/70 00:00 | |
Re: Tasking | 01/01/70 00:00 | |
Keil? | 01/01/70 00:00 | |
Re: Keil | 01/01/70 00:00 | |
Linking | 01/01/70 00:00 | |
Linked! | 01/01/70 00:00 | |
Re: Linked | 01/01/70 00:00 | |
Linking | 01/01/70 00:00 | |
Re: Tasking | 01/01/70 00:00 | |
reply | 01/01/70 00:00 | |
Dunfields or Tasking? | 01/01/70 00:00 | |
Tasking | 01/01/70 00:00 | |
2D Array problem | 01/01/70 00:00 | |
Compiler can deduce size. | 01/01/70 00:00 | |
can, but doesn't have to! | 01/01/70 00:00 | |
Fully Bracketed Initializers | 01/01/70 00:00 | |
Ask Keil | 01/01/70 00:00 | |
C99 vs. C90 | 01/01/70 00:00 | |
Compiler deducing array size | 01/01/70 00:00 | |
Tasking Compiler deduces array size! | 01/01/70 00:00 | |
Which Array? | 01/01/70 00:00 | |
That Array! | 01/01/70 00:00 | |
One More Test![]() | 01/01/70 00:00 |