HI!!!

Which statement is for clearing of a part of screen,of course if exist?

Unfortunately it doesn't. C & C++ are ignorant of the screen. They only know that output goes somewhere without really knowing what's on the other side.

you can use system("cls") but that will clear the entire screen, not just a part of it. Beware that this is an OS command though

you can use system("cls") but that will clear the entire screen, not just a part of it. Beware that this is an OS command though

It's also not portable and is not recommended. If you use it on Linux, which a lot of people here use, it doesn't work. In general, programs should not call the operating system to execute commands unless there is an exceptionally good reason, and system("cls") and system("pause") are not good reasons.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.