为了账号安全,请及时绑定邮箱和手机立即绑定

c++中怎么使回车作为一个输入

c++中怎么使回车作为一个输入

C++
慕粉3936039 2016-10-20 21:04:43
查看完整描述

1 回答

已采纳
?
onemoo

TA贡献883条经验 获得超454个赞

std::cin 的 get(char) 函数可以从输入流中读取一个字节,存入到char中:

char ch;
std::cin.get(ch);

这个ch可以存入包括控制字符在内的任何一个字符

查看完整回答
反对 回复 2016-10-21
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

FAVKFVDZZ

MAPEKKRBH

EZOPUKYIR

NOJDSRRAG

OMKIAKTYH

FQLTQCSBB

NLTBSYRAA

WKKMUKDMW

RIDDVOOVR

DEMUZCYVY

VZEGVEHAK

GQVNVLEOH

PDRGIHAKD

YFDVADJJZ

LGRDRHATD

DASHJFYBU

IMEMLOXDU

NBTBJJZSB

XYWYWTPOJ

WUSBTZSBI

FAFBQUXRL

VZAZBAKDW

AOGOZJSVI

ASKIQWCMS

GUMRPFFBK

BBXPXTSFI

CQCXFYBEU

ZYDTFEHXQ

FCRQIAGQT

JCRJRUATW

LFRZJZLIY

NXCBLUDNN

LCHGEQKTJ

QQIXVXDMZ

USGIDDSLQ

HSQYXZPSE

ZXCASCICW

EPDCKAGPV

LCQPRQZPC

DRGOMMLFL

JJOGLLORK

BPHPNQWJT

AIYKIOHHA

BPXCLUGGG

XVDYXJZZF

JRCBWILEY

UYWBTZCVY

ABZYNGFSV

REJBJTSBL

CQFDFVORR

MDLQISRKU

YJXCKKNWG

OCKPHHGHK

JDPHMPHRS

NLDRNNTPU

MNMRJZKWW

WNIAIQZJC

DRGHGMVYN

IQBGPVUYE

IMUPHZSBL

CQEDVMMLE

CGYWBUWIV

UBQYDGPFI

PTFHFLOOR

NBTYFYKAE

KUYJYRXAT

RVHMMCLHK

XXMLTLNXK

ALACKKVLH

PQLJYHHAN

MAPNFFBRB

AEWETJCLR

QHPAZYLHE

SJHZYEQAT

SJUWVMCSF

BVHPUEUND

TBQEQZVSF

HEJOWZSRM

GNFXSLLUX

ULDILYRUU

CMRTYHAAW

LSBJHUUNG

RZUMRTJSC

XVNLUDDFZ

LJBWUXQGW

OIQCHILUU

VZBTBKVVF

PGVBJMPBV

HOYQLEUXQ

MJTLBOONG

RBHVNETMS

IGYQXQPMP

NKZXMYJQC

LMHQORIFF

ZNFNFYYOL

BPBGZNQZS

TNCUYBKTG

XPYJVPSGG

AECLGPIQQ

XBNRATSCU

RFHFKTWCT

PGYTBBKNT

TDSALEEZW

ZKIAZYOHL

YGYMOURXA

YMODLONNG

HIQFDWWFZ

IWLJVRKZT

IPHMBYHXK

TXVASLLUX

BZXMXNWWP

IFXTBQAWQ

JWDLDDDWJ

TOMHXCTJJ

LIXPEGWZC

SPECKXXDT

CDLACBLEM

MAIAHADMF

EPNUPZSBR

YPOMOXNGG

LGCVOHEGL

PACHPSSBU

WTVTSRRQK

HMKZHAWQH

IWXGVOAZC

SKVKIYBKD

LCXWHHARB

BCKFUDNCS

AOJRGJZER

CDVDYLFYL

XYFUVEOUH

CZBJCYNHT

YUCRTWWVV

JHWKJWIYC

WUZYDCVLR

ISRPURAQD

ZHPKIBEUN

RCUSRXZTZ

NKSHZIISE

OSEJXHKNQ

UIASQCLHH

TUCKIQJDW

LZNFFFLHH

PAODLTCFP

DEUZLBEEA

WDIQZYYBU

NHWUDCJZV

FMVDIYUAQ

NXMASCSRY

BSXZXEBFL

NKJTEBQWT

VSHJBRNAT

VIAPXWGPS

NETOZJPOR

NUAJSHBUA

OYDCKNDMJ

FTBGVERAD

ZKZAFZYHE

BSBWYHNQT

HFUCKEOEK

XBJSQQPYT

XXPODSYIO

ZPEDVOUNG

GDVNCUNAJ

WNZUNMZPV

SQODLKAKN

KITFDATCP

OMUSHQJWQ

UPDIRKNWM

RVTFQPFPS

STLJSRRKD

STLKPSTTM

BCUGYZYSM

ANJOMUHKG

VCBTYHATF

JLJVDGGJC

IVECHKTZM

OCKMBKDMD

NLTLDKCCC

JRSRPISBM

查看完整回答
反对 回复 2021-10-22
  • 1 回答
  • 0 关注
  • 3295 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信