I try copy a string to another string, but it has error with "_ps->copy(_pt,_beg,_end);".
This is my code( but it is not full code):
string* find_The_Longest_Word(string* _ps, int _beg, int_end)
{
string* _pt;
_pt =new string();
_ps->copy(_pt,_beg,_end);
return _pt;
}