Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
18
Task/ABC-problem/FutureBasic/abc-problem-2.basic
Normal file
18
Task/ABC-problem/FutureBasic/abc-problem-2.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
local fn blocks( wordList as str255 )
|
||||
sint16 found, r, x = 3, y = -9 : str63 ch, blocks : ch = " " : blocks = " "
|
||||
for r = 1 to len$( wordList ) +1
|
||||
found = instr$( 1, blocks, ch )
|
||||
select found
|
||||
case > 3: mid$( blocks, found and -2, 2 ) = "__" : text , , fn ColorYellow
|
||||
rect fill ( x, y + 5.5, 15, 15 ), fn ColorBrown
|
||||
case 0: text , , fn ColorLightGray
|
||||
case < 4: blocks=" ,;BOXKDQCPNAGTRETGQDFSJWHUVIANOBERFSLYPCZM": x=3: y+=26: ch=""
|
||||
end select
|
||||
text @"Courier New Bold", 16 : print %( x + 2.5, y ) ch : x += 17
|
||||
ch = ucase$( mid$( wordList, r, 1 ) )
|
||||
next
|
||||
end fn
|
||||
|
||||
window 1, @"ABC problem in FutureBasic", ( 0, 0, 300, 300 )
|
||||
fn blocks( "a baRk booK;treat,COMMON squad Confused comparable incomparable nondeductibles" )
|
||||
handleevents
|
||||
Loading…
Add table
Add a link
Reference in a new issue