So we are using dynamic allocation now with pass by reference and I was starting to understand pass by ref but he wants me to pass by an allocated feature to print out a set of info and also to decide some other info. I'll post the assignment problem
Assignment problems:
C. Write a function called printCat that outputs a CAT neatly. Pass the CAT by REFERENCE. Call your function passing in pMax
D. Write a function called neuter that takes a pointer to a CAT. If the cat is already neutered, print a message to indicate that. If the cat is not neutered, output the comments that the cat might have (G-rated, as I am easily embarassed ) and change the cat’s properties so that it is now a neutered cat. Pass max to your neuter function, and then pass him to the printCat function again to verify that he is now neutered.
I've started it and I need a print function to pass the pMax allocation to the printcat.
Please help guide me in the right direction cause i know i have some pass by ref info wrong