Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Menu/FreeBASIC/menu.basic
Normal file
19
Task/Menu/FreeBASIC/menu.basic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
dim as string menu(1 to 4)={ "fee fie", "huff and puff", "mirror mirror", "tick tock" }
|
||||
|
||||
function menu_select( m() as string ) as string
|
||||
dim as integer i, vc = 0
|
||||
dim as string c
|
||||
while vc<1 or vc > ubound(m)
|
||||
cls
|
||||
for i = 1 to ubound(m)
|
||||
print i;" ";m(i)
|
||||
next i
|
||||
print
|
||||
|
||||
input "Choice? ", c
|
||||
vc = val(c)
|
||||
wend
|
||||
return m(vc)
|
||||
end function
|
||||
|
||||
print menu_select( menu() )
|
||||
Loading…
Add table
Add a link
Reference in a new issue