第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

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

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

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)行時(shí)只有輸入,一直再讓輸入,而不輸出,什么情況
查看完整描述

2 回答

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

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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