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

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

onemoo

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

慕瓜9220888

FAVKFVDZZMAPEKKRBHEZOPUKYIRNOJDSRRAGOMKIAKTYHFQLTQCSBBNLTBSYRAAWKKMUKDMWRIDDVOOVRDEMUZCYVYVZEGVEHAKGQVNVLEOHPDRGIHAKDYFDVADJJZLGRDRHATDDASHJFYBUIMEMLOXDUNBTBJJZSBXYWYWTPOJWUSBTZSBIFAFBQUXRLVZAZBAKDWAOGOZJSVIASKIQWCMSGUMRPFFBKBBXPXTSFICQCXFYBEUZYDTFEHXQFCRQIAGQTJCRJRUATWLFRZJZLIYNXCBLUDNNLCHGEQKTJQQIXVXDMZUSGIDDSLQHSQYXZPSEZXCASCICWEPDCKAGPVLCQPRQZPCDRGOMMLFLJJOGLLORKBPHPNQWJTAIYKIOHHABPXCLUGGGXVDYXJZZFJRCBWILEYUYWBTZCVYABZYNGFSVREJBJTSBLCQFDFVORRMDLQISRKUYJXCKKNWGOCKPHHGHKJDPHMPHRSNLDRNNTPUMNMRJZKWWWNIAIQZJCDRGHGMVYNIQBGPVUYEIMUPHZSBLCQEDVMMLECGYWBUWIVUBQYDGPFIPTFHFLOORNBTYFYKAEKUYJYRXATRVHMMCLHKXXMLTLNXKALACKKVLHPQLJYHHANMAPNFFBRBAEWETJCLRQHPAZYLHESJHZYEQATSJUWVMCSFBVHPUEUNDTBQEQZVSFHEJOWZSRMGNFXSLLUXULDILYRUUCMRTYHAAWLSBJHUUNGRZUMRTJSCXVNLUDDFZLJBWUXQGWOIQCHILUUVZBTBKVVFPGVBJMPBVHOYQLEUXQMJTLBOONGRBHVNETMSIGYQXQPMPNKZXMYJQCLMHQORIFFZNFNFYYOLBPBGZNQZSTNCUYBKTGXPYJVPSGGAECLGPIQQXBNRATSCURFHFKTWCTPGYTBBKNTTDSALEEZWZKIAZY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