运行以下程序后,如果从键盘上输入shose后,则输出结果为 _______。 # include<iostream.h> void main(){ int v1=0,v2=0,k=0; char ch[80]; cin>>ch; while(ch[k]){ switch(ch[k]){ case 's'; case 'h'; default: v1++1; case 'o': v2++; } k++; } cout<<v1<< ','<<v2<<end1; }
A.
2, 0
B.
5, 0
C.
4, 5
D.
2, 5
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Do’s and Don’ts in Whale(鲸) Watching The Department of Fisheries and Oceans has developed guidelines for whale watching in Johnstone Strait, where killer whales are found on a daily basis each summer....
【简答题】阅读理解。 Do's and Don'ts in Whale (鲸) Watching The Department of Fisheries and Oceans has developed guidelines for whale watching in Johnstone Strait, where killer whales are found on a daily basis each ...
【简答题】阅读理解 Do's and Don'ts in Whale(鲸)Watching The Department of Fisheries and Oceans has developed guidelines for whale watching in Johnstone Strait.where killer whales are found on a daily basis each...