最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

指出輸入單詞以元音、輔音開頭單詞還有其他的數(shù)目,下面程序運(yùn)行時只有輸入而不輸出,什么情況

指出輸入單詞以元音、輔音開頭單詞還有其他的數(shù)目,下面程序運(yùn)行時只有輸入而不輸出,什么情況

C C++
xungeer29 2017-10-09 21:28:37
#include<iostream>#include<cctype>#include<string>using namespace std;int main(){?cout << "Enter words (q to quit);"<<endl;?char words[20];?int count1 = 0;?int count2 = 0;?int count3 = 0;?while (cin >> words)?{??if (isalpha(words[0]))??{???if (words[0] == 'a' || words[0] == 'e' || words[0] == 'i' || words[0] == 'o' || words[0] == 'u' ||????words[0] == 'A' || words[0] == 'E' || words[0] == 'I' || words[0] == 'O' || words[0] == 'U')????count1++;???else if (words[0] == 'q'&&strlen(words) == 1)????break;???else????count2++;??}??count3++;?}?cout << "元音:" << count1 << endl??<< "輔音:" << count2 << endl??<< "其他:" << count3 << endl;?return 0;}下面程序運(yùn)行時只有輸入,一直再讓輸入,而不輸出,什么情況
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 2245 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號