typedef struct
へのポインタへのポインタを関数に渡しています。エラー:構造体または共用体ではないメンバー 'a'の要求
request for member 'a' in something not a structure or union }
コード:
typedef struct _tempStruct
{
int a;
int b;
}TempStruct;
void _function(TempStruct ** param)
{
TempStruct *temp = *param;
temp -> a = 5; //no error
*param -> a = 6; //error: request for member 'a' in something not a structure or union
}
Here is the link of code on ideone私はtypedef struct
の内容を変更しようとすると、それは私に、次のエラーが発生します。
私には何が欠けていますか?
'(* param) - > a'おそらく – Shark