如何终止死循环?
Tofloor
poster avatar
zwq133
deepin
2018-07-27 01:08
Author
本帖最后由 zwq133 于 2018-7-26 21:12 编辑

额,按照书上说的,写了一个死循环,可以按 “ctrl+Pause/break” 来终止它,可是我咋个按它都不停,求解!




恩,这是IDE本身的问题。只能把IDE暴力关掉!
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
wtz
deepin
2018-07-27 01:23
#1
我记得是Alt+Break?
这个键应该是用来暂停刷屏,程序本身还是会继续执行。还是Ctrl+C大法好。
Reply View the author
avatar
billy123456
deepin
2018-07-27 01:37
#2
ctrl+c比较常用
Reply View the author
avatar
zwq133
deepin
2018-07-27 01:37
#3
https://bbs.deepin.org/post/166589
我记得是Alt+Break?
这个键应该是用来暂停刷屏,程序本身还是会继续执行。还是Ctrl+C大法好。 ...

Ctrl+C 也不行!
Reply View the author
avatar
zwq133
deepin
2018-07-27 01:38
#4

试了!也不行!!难道是编辑器的问题?
Reply View the author
avatar
billy123456
deepin
2018-07-27 01:40
#5
https://bbs.deepin.org/post/166589
试了!也不行!!难道是编辑器的问题?

你用的是vsc是吧
Reply View the author
avatar
zwq133
deepin
2018-07-27 01:40
#6

就是!!!这都能看出来????
Reply View the author
avatar
billy123456
deepin
2018-07-27 01:58
#7
https://bbs.deepin.org/post/166589
就是!!!这都能看出来????

我试了一下,vsc是停不下来的
我以前用vsc
Reply View the author
avatar
billy123456
deepin
2018-07-27 02:06
#8
加点sleep什么的才停得下来
Reply View the author
avatar
linusboyle
deepin
2018-07-27 02:24
#9
我估计这是windows cmd的控制键位吧……
ctrl-c好一点,实在不行ctrl-d退终端
Reply View the author
avatar
lucykk
deepin
2018-07-27 02:48
#10
vsc是啥?
Reply View the author
avatar
zwq133
deepin
2018-07-27 02:50
#11

Visual Studio Code
Reply View the author
avatar
billy123456
deepin
2018-07-27 03:07
#12
https://bbs.deepin.org/post/166589
我估计这是windows cmd的控制键位吧……
ctrl-c好一点,实在不行ctrl-d退终端

ctrl+c在vsc下无效
Reply View the author
avatar
zzn
deepin
2018-07-27 04:18
#13
在vscode里 Ctrl c 是复制啊,,,就和win一样,建议在终端里手工编译运行,可以用makefile
Reply View the author
avatar
zwq133
deepin
2018-07-27 04:32
#14
https://bbs.deepin.org/post/166589
在vscode里 Ctrl c 是复制啊,,,就和win一样,建议在终端里手工编译运行,可以用makefile ...

NO !
vscode 是继承系统终端的快捷键,ctrl+c 应该是终止,但是它终止不了。
Reply View the author
Comments
billy123456
2018-07-27 04:36
实在不行就kill掉它吧
avatar
180******28
deepin
2018-07-27 19:48
#15
运行的时候用make ./
在终端里面运行呗
终端100%可以Ctrl C啊
Reply View the author
avatar
lord-xinling
deepin
2018-07-27 20:09
#16
不行你用vim啊   deepin不是自带vim吗
Reply View the author
avatar
zwq133
deepin
2018-07-27 20:10
#17

Reply View the author
avatar
luasuns
deepin
2018-07-27 20:41
#18
直接按删除把它删了...我记得好像是要加个shift才算终端快捷键在vsc里面
Reply View the author
avatar
牧野
deepin
2018-07-27 20:42
#19
试用了两天vscode,果断放弃了,现在一直用qtcreator。vscode编译个工程要写脚本,调试工程要写脚本。修改脚本配置控制台不起作用。尼玛。。。。
Reply View the author
avatar
zzn
deepin
2018-08-04 01:22
#20

make不是这样用的吧。,,,你去了解下makefile
Reply View the author
1 / 2
To page