Mail Archives: djgpp/1998/01/15/15:32:35
Sorry for asking a FAQ,
but it still does not work as I expect.
Now I have this program:
#include<conio.h>
int main(void)
{
clrscr()
cprintf("First line\nSecondline\n");
cprintf("Please wait...");
getch();
return 0;
}
/*end of little program **********/
OK, the getch-Problem is solved. Thank you to everyone who helped me
with this.
Now it seems that cprintf() interprets a "\n" as a newline and
nothing more. The printf()-funktion interprets it as a newline and
carrige return. The above program produces staircases when I run it
under DOS. Is there any trick like a escape-sequence for carrige
return (This time I looked in the FAQ first; nothing found ;-) ?
Bjoern
- Raw text -