为了账号安全,请及时绑定邮箱和手机立即绑定

结构体名字

结构体名字是这样命名吗?

struct student{

int math;

int english;

};

student就是名字,后面用的话不是应该student.math[]吗?

正在回答

1 回答

int main(){

   struct Student stu[50];

   stu[20].math=50;

   stu[20].english=50;

   return 0;

}


里的 struct Student stu[50];是重新命名为stu了吗


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
趣味 C++ 入门
  • 参与学习       27956    人
  • 解答问题       171    个

C++ 入门,开启趣味学习之旅,揭开 C++ 的神秘面纱,让你不再望而生畏。

进入课程

结构体名字

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信