home *** CD-ROM | disk | FTP | other *** search
/ Game Programming for Teens / GameProgrammingForTeens.iso / Source / chapter04 / demo04-01.bb next >
Encoding:
Text File  |  2003-04-06  |  867 b   |  28 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ; HelloWorld.bb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  3. ; By Maneesh Sethi;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  4. ; This program prints "Hello World to the screen.;;;;;
  5. ; There are no input variables required;;;;;;;;;;;;;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;VARIABLES
  8. ;The hello string to be printed on the screen
  9. hellostr$ = "Hello World!" 
  10. ;END VARIABLES
  11.  
  12. ;MAIN PROGRAM
  13. ;Pass "hellostr$" to PrintString function
  14. PrintString(hellostr$) 
  15. WaitKey
  16. ;END MAIN PROGRAM
  17.  
  18. ;FUNCTIONS
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;Function PrintString(str$);;;;;;;;;;;
  21. ;This function prints the variable str$
  22. ;Parameters: str$ - the string to be printed
  23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  24. Function PrintString(strng$)
  25. ;Print str$ on screen
  26. Print strng$ 
  27. End Function
  28. ;END FUNCTIONS