0
4

1 回答 1

2

Pay attention to your errors. You're attempting to assign a pointer type to a struct card. You seem to have wanted an array of card*.

struct card *deck[52];

Otherwise you don't need dynamic allocation at all; you already have 52 valid card objects.

于 2014-04-11T03:13:59.747 回答