一个结构体,在VS2010下编译 Teacher t2 = {"aaaa",32,02}; 这句话老是出错,求指教
#include<string.h>#include<stdio.h>
#include<stdlib.h>
typedef struct Teacher
{
char name[64];
int age;
int id;
}Teacher;
void main()
{
Teacher t1;
t1.age = 33;
strcpy(t1.name, "aaa");
Teacher t2 = {"aaaa",32,02};
t1.age = 31;
system("pause");
}