#include <stdio.h>
#include <stdlib.h>
typedef struct {
char name[20];
int age;
} employee;
int main(int argc, char** argv)
{
struct employee em1 = {"Jack", 19};
printf("%s", em1.name);
return 0;
}
这似乎不起作用,因为正如编译器所说,该变量的“struct employee”类型不完整。怎么了?