亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

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 關注
  • 1961 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號