Today's problem is that I am working with "CANNED" messages so in C I use an array or structures like this:
struct messages{
int display;
char* message[9];
};
typedef struct messages Messages[] = {
{1, "BITE TST"}, { 2, "NO LNIK"}, {2, "NO ERROR"},
{1, "AVIONICS"}, { 2, "COMM OK"}, {2, "ER-"},
{2, "LB-"}, {2, "GL-"}
};
but the IDE error: typedef ‘Messages’ is initialized (use decltype instead) WTF!!!!????
I have also re-written this as:
typedef struct {
int display;
char* message[9];
}Messages [] = {
{1, "BITE TST"}, { 2, "NO LNIK"}, {2, "NO ERROR"},
{1, "AVIONICS"}, { 2, "COMM OK"}, {2, "ER-"},
{2, "LB-"}, {2, "GL-"}
};
OK, I give up! Please can anybody quickly tell me what the heck is going on??