XCODE Clearscreen and Pause in C++

Discussion in 'Mac Programming' started by finnm, Jul 20, 2008.

  1. finnm macrumors newbie

    Joined:
    Jul 19, 2008
    #1
    how do i PAUSE and Clearscreen in Xcode C++? i used system(PAUSE) in C++ express.
     
  2. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #2
    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.
     
  3. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #3
    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
     

Share This Page