11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STRANGE RULES1. It doesn't matter where the DATA statement is in the program.Do this: Change line number 30 in the above program to line number 90. Run theprogram. It works just the same.2. It doesn't matter how many DATA statements there are.Do this:Break the DATA statement into two:90 DATA SUNDAY.MONDAY.TUESDAY91 DATAWEDNESDAY.THURSDAY.FRIDAY.SATURDAYRun the program. It works just the same as before.IT ISPOLITE FOR THE "READ" COMMAND TO POINTREAD uses a pointer. It always points to the next item to be read.When the program starts, the READ pointer points to the first item in the first DATAstatement in the program. (That is, the DATA statement with the lowest line number ofall DATA statements in the program.)Each time the program executes a READ command, the pointer moves to the next itemin the DATA list.If the pointer gets to the end of one DATA statement, it automatically goes to the nextDATA statement. (That is, to the DATA statement with the next higher line number.)It doesn't matter if there are a lot of lines between.105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!