delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/22/13:15:24

From: Nicolas Blais <eletech AT netrover DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Conio's cprintf problem
Date: Sun, 22 Mar 1998 13:09:09 -0500
Organization: Elemental Technologies
Lines: 24
Message-ID: <351553C4.EE644B06@netrover.com>
NNTP-Posting-Host: 198.168.87.77
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 and not and the end of Hello. Here's what it shows
on the screen:

Hello
        World!

'--------------CODE-----------------------------------------
#include <conio.h>
#include <iostream.h>

void main(void)
{
 clrscr;
 textcolor(RED);
 cprintf("Hello\n");
 highvideo();
 cprintf("World!");
 textcolor(LIGHTGRAY);
 return(0);
}


- Raw text -


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