简体   繁体   English

如何在Xcode中清除屏幕

[英]How to clear screen in Xcode

I used to #include <conio.h> then clrscr () to clear the screen in C .我曾经#include <conio.h>然后clrscr ()C清除屏幕。

system("cls") is the same. system("cls")是一样的。 I tried that but it's not working in Xcode .我试过了,但它在Xcode不起作用。

So how do you clear the screen in Xcode ?那么如何在Xcode清除屏幕呢?

Please help请帮忙

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) (这将是一个评论,但我还没有声誉)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM