xcode 如何在Xcode中清除屏幕
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12661234/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to clear screen in Xcode
提问by user1593149
I used to #include <conio.h>then clrscr ()to clear the screen in C.
我曾经#include <conio.h>然后clrscr ()清除屏幕C。
system("cls")is the same. I tried that but it's not working in Xcode.
system("cls")是一样的。我试过了,但它在Xcode.
So how do you clear the screen in Xcode?
那么如何清屏Xcode呢?
Please help
请帮忙
回答by Omie
system("clear") should work on terminal, may not in xcode.
system("clear") 应该在终端上工作,在 xcode 中可能不工作。
Check post #10 in this thread -> http://forums.macrumors.com/showthread.php?t=173777
检查此线程中的帖子 #10 -> http://forums.macrumors.com/showthread.php?t=173777
(This would be a comment but I don't have reputation yet)
(这将是一个评论,但我还没有声誉)

