codeblocks控制台为什么Ctrl➕C退不出死循环,而是不断的输出
因为循环没有终止的条件。除非你使用类似
int tmp; while (cin>>tmp)
https://blog.csdn.net/sinat_36053757/article/details/77131392