C++ の基本に関連しています。単一リンクリストを作成しています。
class Linked_List
{
public: Linked_List();
~Linked_List();
//Member Functions
struct node* getHead(void);
private:
struct node{
int d;
struct node* next;
}*head;
};
struct node (Linked_List::*getHead)(void)
{
return head;
}
このエラーが発生しています:
「エラー C2470: 'getHead': 関数定義のように見えますが、パラメーター リストがありません。見かけの本体をスキップしています」.
グーグルで検索してみましたがだめでした。任意の提案をお願いします。