Monday, June 11, 2012

QBasic 64 : CLS Statement

In computer programming you do a lot of housekeeping.

Stuff can quickly get cluttered in the computer memory which can create programming disasters and nightmares.   Stuff can get cluttered on the display screen or on printed mediums.  Think of housekeeping as logical organization of stuff and computer code.

The command to keep display output nice and clean is the CLS statement or command. The CLS clears a display screen for new data to be displayed.  A two line computer program:

CLS
PRINT “Don’t be lazy and stupid in your computer housekeeping.”

If you aren’t good at housekeeping you will spend a lot of time cleaning up and debugging computer programs which can get ugly. 




Video posted by efyoo2.

No comments:

Post a Comment