J
John
Hi,
I need to build a BAUDOT lookup table for an encoder. I see to use a
char as the index 'A' or 'B' and get back an array of booleans (five
elements long).
Baudot['A'] = {00011}
Baudot['B'] = {11001}
Can someone give me a pointer on how to build this as a static lookup
table?
Do I want an array of arrays?
public static bool [][] = {'A', {0, 0, 0, 1, 1, 1} };
This isn't right because an A is not a bool.
Maybe an array of structures?
How do I initiale the structure boolean array?
Thanks,
John
I need to build a BAUDOT lookup table for an encoder. I see to use a
char as the index 'A' or 'B' and get back an array of booleans (five
elements long).
Baudot['A'] = {00011}
Baudot['B'] = {11001}
Can someone give me a pointer on how to build this as a static lookup
table?
Do I want an array of arrays?
public static bool [][] = {'A', {0, 0, 0, 1, 1, 1} };
This isn't right because an A is not a bool.
Maybe an array of structures?
How do I initiale the structure boolean array?
Thanks,
John