単方向の連結リストの実装。 Note 構造体のポインタ変数をメンバ変数に持つとき、そのままだと実体をもたないので、 head = (struct Node *)malloc( sizeof(struct Node) ); head = new Node; コンストラクタとかで上みたいな感じで実体をもたせる。 あとは…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.