下列程序定义并测试了一个字符串类,请根据注释要求填空完善: #include < iostream > #include < cstring > using namespace std; class STR{ char *s; public: STR(char *p){ int n=_____________; // 计算至少需要申请内存的字节数 ___________________; // 根据n的值初始化成员指针 ___________________; // 初始化成员字符串 } void print(){ cout << s << endl; } ~STR(){ delete []s; } }; int main(){ char s1[]="abcde"; STR str(s1); str.print(); return 0; }