填空题
在下面函数的画线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度(不得使用系统提供的字符串处理函数)。
int GetLen(char*str)
if(
(6)
)return
(7)
;
else return 1+GetLen(str+1);
【参考答案】
0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下列程序的输出结果为: Ohject id=0 Object id=1 请将程序补充完整。 #include <iostream> using namespaee std; class Point public: Point(int xx=0,intyy=0)X=xx;Y=yy;countP++; ~Point( )countP--; int GetX( )return X; int GetY( )return Y; static void GetC( ) cout<< Object id= <<<countP<<endl; private: int X,Y; static int countP; ; ______ 静态数据成员的初始化 int main( ) Point::GetC( ); Point A(4,5); A.GetC( ); return 0;
点击查看答案&解析
填空题
friend:Date
点击查看答案&解析
相关试题
Date
空格