0
私は別の機能
int list::length() const {
return length;
}
CPPのファイルの下
ヘッダファイルの上に可変長のconstをしたときにエラーがこの機能に起こっている理由
わかりません
class list {
private:
struct Node
{
int info;
Node *next;
};
int length;
Node *head;
public:
list();
list(const list& otherlist);
~list();
int list::length() const;
};
ありがとうございました。それは間違いなく問題でした! – Carlitos