Hi, i have an array of pointers to pointers. Its a deck of cards and we've been told in class to do it that way. I have a build_deck() function and a shuffle_deck() function. They both work fine. And now im onto the deal_card() function, and it works but it just prints out the address of what its pointing to. Any help would be greatly appreciated, here is some of the code :)
Operators new and new[]
In order to request dynamic memory we use the operator new. new is followed by a data type specifier and -if a sequence of more than one element is required- the number of these within brackets []. It returns a pointer to the beginning of the new block of memory allocated. Its form is: