請向我解釋此方法的聲明/說明中的錯誤?函數聲明有什麼錯誤?
class Set
{
struct Node {
// ...
};
// ...
Node* &_getLink(const Node *const&, int) const;
// ...
};
Node* &Set::_getLink(const Node *const &root, int t) const
{
// ...
}
我沒有看到錯誤,但編譯器(MS VS C++)給出了很多語法錯誤。
嘗試設置::節點到你的代碼 –
什麼是編譯器錯誤?把它放在問題標題中。 –