如果输入中有两个连续的回车,就判断为输入结束。
http://blog.csdn.net/more_ugly_less_bug/article/details/60147075可参考我的博客,我的程序在DEV中,可以用ctrl+z +回车键模拟结束