Answered HubPage Question: when I started to learn c language i did not use the keywords like

58
rate or flag this page

By nicomp


clrscr() is not part of standard C or C++. It was part of the original Borland C compiler as long as the header conio.h was included in the program.

For example:
#include <conio.h> // Include the conio.h file in the program.

The conio.h header is not part of the ANSI or ISO C or C++ language definitions.That's not a problem unless you plan to write portable code that must compile accross multiple compliers and platforms.

If you are writing a console-based program, then clrscr() will clear the screen (or window) that has the console in it. The function works if you are running in a "DOS" type window or if you are running in a true windowing environment that supports a console style window.



C Programming Language (2nd Edition) C Programming Language (2nd Edition)
Price: $39.88
List Price: $60.33
C Primer Plus (5th Edition) C Primer Plus (5th Edition)
Price: $24.00
List Price: $54.99

Comments

RSS for comments on this Hub

nicomp profile image

nicomp  says:
7 months ago

Does this make sense to anyone?

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working