@[xiaoaimee](/user/1390458) 你用的是while(cin>>)吗?
by yangxikun @ 2024-07-24 04:41:58
Ctrl+Z @[xiaoaimee](/user/1390458)
by YangTL @ 2024-07-24 07:23:51
ctrl+w然后回车。
by Peter20122012 @ 2024-07-24 07:59:23
@[yangxikun](/user/1357492)
是的.
by xiaoaimee @ 2024-07-24 10:06:00
@[YangTL](/user/1129853) 已解决,多谢
by xiaoaimee @ 2024-07-24 10:07:14
@[Peter20122012](/user/1232175) 亲测,Ctrl+w无效,应为Ctrl+z然后回车。
by xiaoaimee @ 2024-07-24 10:14:12
@[xiaoaimee](/user/1390458) 其实你也可以输入第一行,判断有多少个字符,就知道n是多少了
by Peter20122012 @ 2024-07-24 10:28:32
我的程序不知道为什么Ctrl+w是有效的
by Peter20122012 @ 2024-07-24 10:29:24
@[Peter20122012](/user/1232175)
你用的是c++吗?
by xiaoaimee @ 2024-07-25 13:17:44