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
The new statement returns a pointer to the newed instance. So you need to defined the student1 as a pointer.
new
student1
struct Student * student1 = new Student;