struct函数
程序代码:#include<stdio.h>
#define x 40
#define y 40
struct book
{
char tile[x];
char name[y];
float cost;
};
int main()
{ struct book liu={.tile="vdv",
.cost=9,
.name="ghg" };
puts(liu.tile);
puts(liu.name);
printf("%f\n",liu.cost);
return 0;
}error C2059: syntax error : '.'我明明是按照编程书上的不知道为什么会有这个错误,我是新手









