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
Download as docx, pdf, or txt
0 ratings0% found this document useful (0 votes)
39 views1 page
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.