Define the student class student, data members include students student id number and grade score, define three member function (enter student id and grades, modified result, output the student id and grades), define s1 students object input and output student id and record; Define the pointer variable p student id to objects s2 input and output result; Objects defined stu1 s1 references, and use the score on the reference to modify s1 and output,
CodePudding user response:
Can participate