This C++ code defines a function that adds a new student to a class by allocating memory for a student object, initializing it with a given name and social security number, adding it to the class object, and returning a pointer to the new student object.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
46 views2 pages
Student 890
This C++ code defines a function that adds a new student to a class by allocating memory for a student object, initializing it with a given name and social security number, adding it to the class object, and returning a pointer to the new student object.