stroka stroka operator stroka two cout отработала stroka operator stro

1
2
3
4
5
6
7
8
stroka& stroka::operator = (stroka &two)
{
cout<<"отработала stroka::operator = (stroka &two)"<<endl;
DlinStr=two.GetDlin(); //DlinStr=xxx.DlinStr;
ykaz= new char[DlinStr];
strcpy(ykaz,two.GetYkaz()); //strcpy(ykaz,xxx.ykaz);
return *this;
}