Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

finnm

macrumors newbie
Original poster
Jul 19, 2008
16
0
how do i PAUSE and Clearscreen in Xcode C++? i used system(PAUSE) in C++ express.
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
Are you asking how to pause program execution in C++ and clear the terminal screen?

By C++ express do you mean coding C++ in Visual Studio express? There is no such thing as 'XCode C++' or 'C++ express'. These are just IDEs.
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
pause is not system independent. Use sleep or usleep library functions for this. Clearscreen is term type dependent and the window XCode uses to display console I/O may not support this.

-Lee
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.