だから私はプレイヤーの手札にカードを追加しようとしています...そして、カードの値は、一番上のカードと最後のカードにダブルポインターを使用する場合にのみメイン関数に戻されます。しかし、last->pt は temp に変換できません。これを修正するにはどうすればよいですか?
typedef struct card_s
{
char suit[9];
int value;
struct card_s *pt;
} card;
void deal_card(card **top, card **last, card dealt)
{
card *temp;
temp = (card*)malloc(sizeof(card));
strcpy(temp->suit, dealt.suit);
temp->value = dealt.value;
if(*top == NULL)
*top = temp;
else
*last->pt = temp; //FIX ME - something is going wrong at this point
*last = temp;
last->pt = NULL; //FIX ME - same problem as above
}