I have found 2 exercices on internet and I don’t understand to solve it, there are the exercices :
Code a class “SmartPointer”, it should be able to be used as a pointer. When the class instance is destroyed, the pointer is destroyed as well. The use of “void *” is forbidden, The class will have to support any type pointer.
Code a function “print” which displays the number of parameter of the function then show them one by one.
Thanks you for your help