系统命令pause没了?
Tofloor
poster avatar
shenhai
deepin
2016-03-09 07:19
Author
本帖最后由 shenhai 于 2016-3-8 23:36 编辑

我用c和c++写了个小程序,然后在末尾加了system("pause");然而执行的时候却显示没有pause这个命令,是怎么回事啊?求解?还有就是深度终端的问题,我在qtcreator中设置使用了deepin-terminal -e。但是执行的时候直接一闪而过,加了getchar();也不行,所以应该是深度终端的问题了,并且使用终端运行程序的时候,不能加载gdb调试器~~~所以深度终端要改善了啊
Reply Favorite View the author
All Replies
avatar
xliang9550
deepin
2016-03-09 08:57
#1
楼主到底用的C还是C++?如果是C,在程序末尾添加1到2个getch();,如果是C++,添加1到2个std::cin.get();。
我在Linux下面还从未用过system("pause");,并且我知道楼主看的教材一定是基于Windows下的Dev-C++的。
Reply View the author
avatar
macaiyun0629
deepin
2016-03-09 13:37
#2
大哥,这个不关deepin的事了,pause是windows的命令,c语言和linux都没有这个命令;我写c代码从没出现一闪而过的情况,如果代码没有图形界面的话,建立工程时选择终端程序
Reply View the author
avatar
u855697021
deepin
2016-03-09 16:08
#3
linux下没pause,自己写一个吧...
Reply View the author
avatar
xliang9550
deepin
2016-03-10 06:12
#4
楼上二位不要这么直白嘛,打击新手积极性……
Reply View the author
avatar
shenhai
deepin
2016-03-10 17:08
#5
https://bbs.deepin.org/post/37876
楼上二位不要这么直白嘛,打击新手积极性……

我不是新手。。。纯属犯二
Reply View the author
avatar
xliang9550
deepin
2016-03-10 20:07
#6
现在大部分IDE都不会出现闪退问题。
Reply View the author
avatar
shenhai
deepin
2016-03-10 21:50
#7
https://bbs.deepin.org/post/37876
现在大部分IDE都不会出现闪退问题。

不是IDE的问题,是深度终端的bug
Reply View the author