Mam strukturę w klasie menu
struct Screen
{
String text;
Screen *menu;
Exectype *exec;
};
i chce sobie pod tą strukturą 2 obiekty tej struktury zrobić:
Screen cos2[] = {
{ "dd",NULL, NULL},
{ "ddup",NULL, NULL },
{ "ddus", NULL, NULL },
{ "Quddit", NULL, NULL }
};
Screen cos[] = {
{ "d",NULL, ds},
{ "dup",NULL, NULL },
{ "dus", NULL, NULL },
{ "d", NULL, NULL }
};
błąd: incomplete type is not allowed
Dodam to że jak mam tylko 1 obiekt tej struktury to wszystko działa