猿问

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

慕粉3936039
浏览 3304回答 1
1回答

onemoo

std::cin 的 get(char) 函数可以从输入流中读取一个字节,存入到char中:char ch; std::cin.get(ch);这个ch可以存入包括控制字符在内的任何一个字符

慕瓜9220888

FAVKFVDZZMAPEKKRBHEZOPUKYIRNOJDSRRAGOMKIAKTYHFQLTQCSBBNLTBSYRAAWKKMUKDMWRIDDVOOVRDEMUZCYVYVZEGVEHAKGQVNVLEOHPDRGIHAKDYFDVADJJZLGRDRHATDDASHJFYBUIMEMLOXDUNBTBJJZSBXYWYWTPOJWUSBTZSBIFAFBQUXRLVZAZBAKDWAOGOZJSVIASKIQWCMSGUMRPFFBKBBXPXTSFICQCXFYBEUZYDTFEHXQFCRQIAGQTJCRJRUATWLFRZJZLIYNXCBLUDNNLCHGEQKTJQQIXVXDMZUSGIDDSLQHSQYXZPSEZXCASCICWEPDCKAGPVLCQPRQZPCDRGOMMLFLJJOGLLORKBPHPNQWJTAIYKIOHHABPXCLUGGGXVDYXJZZFJRCBWILEYUYWBTZCVYABZYNGFSVREJBJTSBLCQFDFVORRMDLQISRKUYJXCKKNWGOCKPHHGHKJDPHMPHRSNLDRNNTPUMNMRJZKWWWNIAIQZJCDRGHGMVYNIQBGPVUYEIMUPHZSBLCQEDVMMLECGYWBUWIVUBQYDGPFIPTFHFLOORNBTYFYKAEKUYJYRXATRVHMMCLHKXXMLTLNXKALACKKVLHPQLJYHHANMAPNFFBRBAEWETJCLRQHPAZYLHESJHZYEQATSJUWVMCSFBVHPUEUNDTBQEQZVSFHEJOWZSRMGNFXSLLUXULDILYRUUCMRTYHAAWLSBJHUUNGRZUMRTJSCXVNLUDDFZLJBWUXQGWOIQCHILUUVZBTBKVVFPGVBJMPBVHOYQLEUXQMJTLBOONGRBHVNETMSIGYQXQPMPNKZXMYJQCLMHQORIFFZNFNFYYOLBPBGZNQZSTNCUYBKTGXPYJVPSGGAECLGPIQQXBNRATSCURFHFKTWCTPGYTBBKNTTDSALEEZWZK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