题目内容
下列程序中类STR的功能是统计字符串中的单词数量。请完善程序。#include#includeusing namespace std;class STR{char *p;int c;public:STR(char *s1=0){c=0;if (s1){p=____; // 初始化成员指针pstrcpy(p, s1);}elsep=0;}~STR( ) { if(p) ____; }void print( ){cout<
查看答案
搜索结果不匹配?点我反馈