哪错啦?求帮助
#include<stdio.h>#include<string.h>
#define FORMAT "%s\n%s\n%d\n%s\n%f\n"
struct teacher
{
char name;
char sex;
int age;
char department;
float salary;
};
void main()
{
void print(struct teacher);
struct teacher tea1;
strcpy(tea1.name,"Mary");
strcpy(tea1.sex,"W");
tea1.age=40;
strcpy(tea1.department,"computer");
tea1.salary=1234;
print(tea1);
}
void print(struct teacher tea1)
{
printf(FORMAT,tea1.name,tea1.sex,tea1.age,tea1.department,tea1.salary);
printf("\n");
}