填空题:下列函数的功能是判断字符串str是否对称,对称则返回true,否则返回false。请在横线处填上适当内容,实现该函数。

  • 题目分类:C++
  • 题目类型:填空题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
下列函数的功能是判断字符串str是否对称,对称则返回true,否则返回false。请在横线处填上适当内容,实现该函数。
boolfun(char*str)
{
inti=0,j=0;
while(str[j])(6);
for(j--;i
returni(7)j;
}
参考答案:
答案解析:

有如下程序: #include usingnamespacestd; classAA{ intn; public: AA

有如下程序: #include usingnamespacestd; classAA{ intn; public: AA(intk):n(k){} intget

查看答案

有如下类声明: classMyBASE{ intk; public: voidset(intn){k=n;} intge

有如下类声明: classMyBASE{ intk; public: voidset(intn){k=n;} intget()const{returnk;} }

查看答案

“Salty”Rice Plant Boosts Harvests British scientists are bre

“Salty”Rice Plant Boosts Harvests British scientists are breeding a new generati

查看答案

Which country is the largest coffee producer?

Which country is the largest coffee producer?A.Brazil B.Colombia C.Ethiopia D.Eg

查看答案

“some” in the last sentence of the first paragraph refers to

“some” in the last sentence of the first paragraph refers toA.some cocoa trees B

查看答案