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

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

cin.get(next);什么意思?

cin.get(next);什么意思?

C C++
xungeer29 2017-10-27 21:40:28
//?static.cpp?--?using?a?static?local?variable #include?<iostream> //?constants const?int?ArSize?=?10; //?function?prototype void?strcount(const?char?*?str); int?main() { using?namespace?std; char?input[ArSize]; char?next; cout?<<?"Enter?a?line:\n"; cin.get(input,?ArSize); while?(cin) { cin.get(next);????????????????????//這一句什么意思?next=input? while?(next?!=?'\n')?//?string?didn't?fit! cin.get(next);?//?dispose?of?remainder strcount(input); cout?<<?"Enter?next?line?(empty?line?to?quit):\n"; cin.get(input,?ArSize); } cout?<<?"Bye\n"; return?0; } void?strcount(const?char?*?str) { using?namespace?std; static?int?total?=?0;?//?static?local?variable int?count?=?0;?//?automatic?local?variable cout?<<?"\""?<<?str?<<"\"?contains?"; while?(*str++)?//?go?to?end?of?string count++; total?+=?count; cout?<<?count?<<?"?characters\n"; cout?<<?total?<<?"?characters?total\n"; }cin.get(next);?是什么意思?
查看完整描述

目前暫無任何回答

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

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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