Here are the structure declarations:
typedef struct line { int width; char *theLine; } Line; typedef struct screen { int width; int height; Line *theScreen; } Screen; Here is what I am using to try an initialize the Screen structure:
int main() { Screen b = {20, 40, {40, "-"}}; } When I compile the above the result is:
warning: braces around scalar initializer [enabled by default] Screen b = {20, 40, {40, "-"}}; ^ What am I doing wrong in the structure initialization? Also, once I am able to compile the code above, how would I access each member of the Line variable withing the struct screen? Any help is greatly appreciated, thank you.