Message-Id: <3.0.32.19980322221412.006a73cc@uniserv.uniplan.it> Date: Sun, 22 Mar 1998 22:21:37 +0100 To: djgpp AT delorie DOT com From: Angelo Pesce Subject: Conio's cprintf problem Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk >Hi, whenever I compile and run this code, the "World!" string is placed >below the "Hello" but after the "o". How do I make it got in the >beggining of the line andenot and the end of Hello. Here's what it shows >on the screen: > >Hello > World! That's coz cprintf \n is only line feed but it doesn't perform a carridge return. You should use \n\c instead (if I remember well) > >'--------------CODE----------------------------------------- >#include >#include > >void main(void) >{ > clrscr; > textcolor(RED); > cprintf("Hello\n"); > highvideo(); > cprintf("World!"); > textcolor(LIGHTGRAY); > return(0); >} > > > >