从键盘上输入XXYYZZXYZWXP和X,以下程序的输出结果是 [9] 。
#include<iostream.h>
#include<string.h>
void main( )
char*str,ch;
int count=0,pos;
cin>>str>>ch;
pos=strlen(str)-1;
while(pos>=0)
if((str[pos])=ch)count++;
pos--;
cout<<"count="<<count;
题库:计算机等级考试
类型:填空题
时间:2017-07-03 15:45:42
免费下载:《填空》Word试卷
从键盘上输入XXYYZZXYZWXP和X,以下程序的输出结果是 [9] 。
#include<iostream.h>
#include<string.h>
void main( )
char*str,ch;
int count=0,pos;
cin>>str>>ch;
pos=strlen(str)-1;
while(pos>=0)
if((str[pos])=ch)count++;
pos--;
cout<<"count="<<count;
本题关键词:输出结果,肝糖输出,输出浓度,信号输入,输入控制,静脉输入,去输出状态,输出襻梗阻,系统输出口,输出段梗阻;