Таким образом, у меня есть ошибка, я выделил ее для этой функции. Ничего другого, похоже, не проблема.
полная строка ошибки:
word_driver.obj: ошибка LNK2001: неразрешенный внешний символ "public: class WORD & __thiscall WORD :: operator = (класс std :: basic_string, класс std :: allocator> const &)" (? 4WORD @@QAEAAV0 @ABV? $ basic_string @DU? $ char_traits @D @станд @@V? $ распределитель @D @2 @@станд @@@Z)
WORD us;
us = "abc";
cout<<"Testing operator= by assignment the value of \"abc\" to use\n";
cout<<us;
class WORD
{
public:
WORD & operator=(const string &);
WORD & operator=(const WORD &);
private:
void AddChar(char);
alpha_numeric *front;
};
WORD & WORD::operator=(const WORD & org)
{
alpha_numeric *p;
if (this != &org)
{
if (!Is_Empty())
{
while(front != 0)
{
p = front;
front = front->next;
delete p;
}
}
for(p = org.front; p!=0; p=p->next)
{
AddChar(p->symbol);
}
}
return *this;
}
Вам не хватает определения для оператора = перегрузка для WORD const &. Вставьте код, который привел к этому сообщению компилятора.