Question: Study C++ pointers and dynamic memory. Create the Student class in C++. Each student should have a level (initially is 0). Create the main
Study C++ pointers and dynamic memory. Create the Student class in C++. Each student should have a level (initially is 0). Create the main method, create an object of the Student class in dynamic memory. Use cout to print your object. Create a function rank_student that receives a pointer to a Student object and increase the rank of the Student object by 1. Use cout to print the object after calling the rank_student function over the object.
Step by Step Solution
3.42 Rating (146 Votes )
There are 3 Steps involved in it
To solve the problem in the image we need to create a Student class with a level attribu... View full answer
Get step-by-step solutions from verified subject matter experts
