This C++ code defines a function that adds a new student to a class. It takes in a class object, student name, and social security number. It checks if a name was provided, creates a new student object with the given details, adds it to the class, and returns the student pointer.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
40 views
Student
This C++ code defines a function that adds a new student to a class. It takes in a class object, student name, and social security number. It checks if a name was provided, creates a new student object with the given details, adds it to the class, and returns the student pointer.