Help with C++ 'clear screen' commmand

Hi there,
I would like to control data entry in an array list using the C++ clear screen command, but I do not understand how can I accomplish that can u please help me in this regard. I would high appreciate an example code to enlighten me more. Thanks in advance!

Comments

  • : Hi there,
    : I would like to control data entry in an array list using the C++ clear screen command, but I do not understand how can I accomplish that can u please help me in this regard. I would high appreciate an example code to enlighten me more. Thanks in advance!
    :


    actually I ain't got ur questiopn man, explain it a bit more and i will definately hep ya.
  • : Hi there,
    : I would like to control data entry in an array list using the C++ clear screen command, but I do not understand how can I accomplish that can u please help me in this regard. I would high appreciate an example code to enlighten me more. Thanks in advance!
    :

    [blue]there is no such thing as a "c++ clear screen command" how to clear the screen is entirely operating system dependent. *nix computer are not the same as MS-DOS, or MS Windows, or MAC.

    On MS-DOS I just simply use system[/blue]
    [code]
    system("cls");
    [/code]

    [blue]There are Win32 function calls, but they are a lot more complicated.[/blue]
  • [b][red]This message was edited by pseudocoder at 2004-8-31 23:40:38[/red][/b][hr]
    : : Hi there,
    : : I would like to control data entry in an array list using the C++ clear screen command, but I do not understand how can I accomplish that can u please help me in this regard. I would high appreciate an example code to enlighten me more. Thanks in advance!
    : :
    :
    : [blue]there is no such thing as a "c++ clear screen command" how to clear the screen is entirely operating system dependent. *nix computer are not the same as MS-DOS, or MS Windows, or MAC.
    :
    : On MS-DOS I just simply use system[/blue]
    : [code]
    : system("cls");
    : [/code]
    :
    : [blue]There are Win32 function calls, but they are a lot more complicated.[/blue]
    :


    Perhaps the OP is after?

    [code]

    for(int count = 0; count < some_val; count++)
    {
    system("cls");
    cout.flush();
    cout << "Enter next value: ";
    cin >> some_array[count];
    }[/code]


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories