Jump to content

Recommended Posts

Posted

hi people,

I need a help frm u all!

is there any functions that helps to clear 50 % of the cosole screen? :blushing:

i give

for (i=0;i<25;i++)

cout<<"sample line<<endl;

So this code prints 25 lines.

i need to clear screen half of the screen.

i.e it shld clear the line numbers 25 till 15. :huh:

system("cls");

clears the full screen,

regards,

ootsoo


Posted

If the screen has 25 lines then you could print 10 blank lines and reprint the bottom 15 lines.

What environment does this need to work in?

Can you depend on ANSI support? Can you use libcurses? Is it a Windows console program??

Console window manipulation is really platform-specific and isn't directly available in C++.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...