Hello all,
Is there another function besides system() I can use to clear the screen? The constant flicker is annoying.
cpp4ever
Printable View
Hello all,
Is there another function besides system() I can use to clear the screen? The constant flicker is annoying.
cpp4ever
Perhaps you should read the FAQ like everyone else? No, wait, nobody reads the FAQ, nevermind. Ask away...
That and the fact that you provide _NO_ information on what OS you're running, what compiler you're using...
[sarcasm]I just love these questions...[/sarcasm]
Quzah.
>>Clear screen???
LOL
Wipe it
i wrote a small function to do this
it just prints some \n on the screen...
that's the way a newbie helps himself *eg*Code:int my_cls()
{
my_lines(50);
return 0;
}
int my_break()
{
my_newline();
printf( "[Enter] drcken zum fortzufahren... \n" );
getch();
return 0;
}
int my_newline()
{
printf( "\n" );
return 0;
}
int my_lines(int x)
{
int y;
for(y=1; y<=x; y=y+1)
{
my_newline();
}
return 0;
}
Command "clrscr()". This command uses "conio.h" library.
Hmmmmm, tough one:confused:
Let me think.....
...
thinking....
...
Ok got it.
Read the FAQ!
I thought clrscr() was a C++ thing.
gonna have to look that one up
>>> I thought clrscr() was a C++ thing.
It is not ANSI C or C++. It is a function included by some, not all, compiler vendors.
First post so if this screws up please forgive. I too have been mystified as a C beginner by the difficulty of clearing the screen. I finally resorted to writng an asm routine to do it and then discovered it can also be done by Bios interrupts ...
klausiCode:int count;
for(count=0;count<20;count++, putchar('')) ; /* e.g for 80*20 a screen */