Dynamically allocate memory for struct

前端 未结 8 609
自闭症患者
自闭症患者 2020-12-31 12:21

I am taking a C++ class and have a assignment which requires me to dynamically allocate memory for a struct. I don\'t recall ever going over this in class and we only brief

8条回答
  •  礼貌的吻别
    2020-12-31 12:45

    struct goes before the name of the structure it defines. :)

    What is the error you're seeing when you try new Student? Why doesn't it work?

提交回复
热议问题