delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/15/13:32:08

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with simple commands
Date: 15 Mar 1997 06:27:52 GMT
Organization: The National Capital FreeNet
Lines: 23
Message-ID: <5gdfh8$lkj@freenet-news.carleton.ca>
References: <33289b66 DOT 5518194 AT news>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Matt Chuckleton (riker AT pipcom DOT com) writes:
> Last year I started learning C with Borland C++ (I think :).  There
> are 4 commands in particular that I used than, that I can't get to
> work with DJGPP.  They are:
> 
> clrscr();		(clear screen)
> getch();		(wait for a key press)

#include <conio.h> and you'll have these. Borland must have included it
automatically.

> /n		(new line - used with printf, etc.)
> /t		(tab - used with printf, etc.)

Use \n, \t. Borland must have had slashes backwards. (I thought slash
direction was specified in ansi?)

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019