Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Copy-a-string/BBC-BASIC/copy-a-string.basic
Normal file
11
Task/Copy-a-string/BBC-BASIC/copy-a-string.basic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
source$ = "Hello, world!"
|
||||
|
||||
REM Copy the contents of a string:
|
||||
copy$ = source$
|
||||
PRINT copy$
|
||||
|
||||
REM Make an additional reference to a string:
|
||||
!^same$ = !^source$
|
||||
?(^same$+4) = ?(^source$+4)
|
||||
?(^same$+5) = ?(^source$+5)
|
||||
PRINT same$
|
||||
Loading…
Add table
Add a link
Reference in a new issue