a=后面是{} 大括号 ,不是圆括号()
是
struct stu a = {"张三",17,95.5};
你题目的解答代码如下:(如有帮助,望采纳!谢谢! 点击我这个回答右上方的【采纳】按钮)
#include<stdio.h>
struct stu
{
char name[20];
int age;
float score;
};
int main()
{
struct stu a = {"张三",17,95.5};
printf("%s %d %f", a.name, a.age, a.score);
return 0;
}