问答详情
源自:4-2 定制自己的容器:结构体和共用体

急问急问!

struct Student {    int math;    int english; }后math和english还是数组吗,可以赋值吗



提问者:小鸡毛同学 2025-08-28 18:34

个回答

  • 慕设计3542113
    2026-04-18 22:47:56

    struct Student {    int math;    int english; }只是这个定义了结构体包含两项参数,在程序中声明变量时,可以声明含有多个结构体的数组变量

  • 慕田峪3065978
    2025-08-30 16:24:51

    👌可以吧!