• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: <conio.h> and system ("cls")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <conio.h> and system ("cls")


  • Subject: Re: <conio.h> and system ("cls")
  • From: Markus Hitter <email@hidden>
  • Date: Mon, 4 Oct 2004 19:49:28 +0200


Am 04.10.2004 um 18:22 schrieb Carl Clayton:

I am new to programming in c++, and I can't seem to get the "include <conio.h>" header to work on Xcode,

Is there actually such a file on your platter? On mine, (OS X 10.3.5/Xcode 1.2) there isn't.


is there an equivalent for this header?

Dunno, never seen this conio.h header.

Also how can I clear the screen with Xcode?
I tried system ("cls"), clrscr (), sysem ("clear"), but none of them work.

system("tput clear");

Note this is rarther heavy weight since you fork a new process. For more than playing around, I'd suggest having a look at the curses or a similar library.

It won't work in the Xcode console either, since there is no terminal emulation, AFAIR.


This one might do what you want as well, more light weight and Xcode compatible:


	printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");


HTH, Markus


P.S.: Quite some people seem to talk about "C++" if they have questions/issues with traditional, plain C, these days ... just wondering.


- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 ><conio.h> and system ("cls") (From: Carl Clayton <email@hidden>)

  • Prev by Date: Beginner question: Java packages in XCode?
  • Next by Date: Re: <conio.h> and system ("cls")
  • Previous by thread: <conio.h> and system ("cls")
  • Next by thread: Re: <conio.h> and system ("cls")
  • Index(es):
    • Date
    • Thread