C++ .NET

I

Ioannis Vranos

Adie said:
How do I clear the screen?


There is no standard way either in C++ or .NET Console. You can use

<cstdlib>


std::system("cls");


if you are targeting Windows/.NET.
 
M

Mike Wahler

Ioannis Vranos said:
Mike said:
[Paraphrasing the little boy in "The Matrix"]:

There is no screen.


A better answer would be: "Follow the white rabbit".

Actually, one I saw a while back I like even better:

"Turn it upside down and shake."

-Mike
 
A

Adie

Ioannis said:
There is no standard way either in C++ or .NET Console. You can use

<cstdlib>


std::system("cls");


if you are targeting Windows/.NET.

i am targetting c++ thank you iyounis.
 
M

Mike Wahler

Adie said:
i am targetting c++ thank you iyounis.

Here, when we say 'target' we're talking about
a particular 'platform' (combination of hardware,
operating system, etc.), e.g. Microsoft Windows
on an Intel CPU. C++ isn't a 'target', it's
the 'arrow'.


-Mike
 
A

Adie

Mike said:
Here, when we say 'target' we're talking about
a particular 'platform' (combination of hardware,
operating system, etc.), e.g. Microsoft Windows
on an Intel CPU. C++ isn't a 'target', it's
the 'arrow'.


-Mike

I have no arrows in my c++ mike, only .net I think. though thank you for
your assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,199
Messages
2,571,045
Members
47,643
Latest member
ashutoshjha_1101

Latest Threads

Top