Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
7 user(s) are online (6 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

QBasic

QBasic (a name derived from QuickBASIC, BASIC being an acronym for Beginner s All-purpose Symbolic Instruction Code) is a variant of the BASIC programming language. The source code is compiled to an intermediate form within the integrated development environment (IDE), and this intermediate form is immediately interpreter (computing) on demand within the IDE.

= Syntax =

Like QuickBASIC, but unlike earlier versions of Microsoft BASIC, QBasic was a structured programming language, supporting constructs such as named subroutines and while loops. Line numbers, a concept often associated with BASIC, were supported for compatibility, but were not necessary and not considered good form, having been replaced by descriptive line labels. QBasic has limited support for user-defined data types (structures), and several primitive types used to contain strings of text or numeric data.

=History=

It was intended as a replacement for Microsoft GW-BASIC interpreter, and was shipped together with MS-DOS 5.0 and higher, including Windows 95. QBasic was based on the earlier Microsoft QuickBASIC compiler 4.5 compiler but without QuickBASIC s compiler and linker elements.

Microsoft stopped shipping QBasic with later versions of Windows. Windows 98 users, however, will find it in the TOOLSOLDMSDOS directory of the CD-ROM; on the Windows 95 CD-ROM, it is in the OTHEROLDMSDOS directory. It is now only available from Microsoft s website for licensed users of MS-DOS. QBasic provided a state-of-the-art IDE (for its time), including a Debugger with features such as on-the-fly expression evaluation and code modification that were still relatively unusual in 2003, more than ten years later.

QBasic was also the subject of several programming books for beginners.

Using the free DOSBox emulator it today runs on almost all platforms such as Windows NT, Linux, FreeBSD, etc.

QBasic came complete with a couple of pre-written example games. These were Nibbles (computer game) (a variant of the Snake_(video_game) game), Gorilla (computer game), an explosive-banana throwing game and RemLine, a GW-BASIC code line number removing program.

= Code Example =

The following code displays Hello, World and makes weird sounds:

PRINT Hello, World FOR Note = 450 TO 750 STEP 20 SOUND Note, 1 SOUND 800 - Note, 1 NEXT Note FOR Note = 750 TO 450 STEP -20 SOUND Note, 1 SOUND 750 + Note, 1 NEXT Note FOR Note = 100 TO 1000 STEP 20 SOUND Note, 1 SOUND 750 + Note, 1 NEXT Note END

= Special Keys =

Press Ctrl+Break to break a running program. Press F5 to continue a program whose execution was broken. Press Shift+F5 to restart a program back from the beginning. Press F4 while program execution is broken to view the run-time screen, then press F4 again to switch back to the code screen. Press F1 for help.

= External links =

  • [http://www.qbasic.com/ QBasic.com (under reconstruction)]
  • [http://www.qbasicnews.com/ QBasic/QuickBasic News: active] ([http://www.qbasicnews.com/sections.phpid=4 link] for downloading QBasic)
  • [http://www.petesqbsite.com/ Pete s QB Site: active, QB:Express magazine]
  • [http://www.geocities.com/jo9992/qbasic.html Qbasic central: active, Has some well developed qbasic games]
  • [http://www.network54.com/forum/13959 Network54.com: active forum]
  • [http://www.qbasicjedi.tk/ qbasicjedi.tk: QBasic forum frequent NEWKs QBasic website]
  • [http://www.qbasicsite.tk/ Matthew s QB Site: A nice site with a good forum and chatroom.]
  • [http://qbnz.com/ QBasic New Zealand: inactive, downloads]
  • [http://www.geocities.com/aliphax/ Alipha s site: inactive, few downloads and articles]
  • [http://qbasic.net.tc/ Q-Basic Turkey Site News: inactive]
  • [http://www.qbcafe.net/ QuickBasic Cafe: inactive, Downloads (Compilers,Tools,Libraries,Tutorials) Board]
  • [http://www.allfreetutorials.com/index.phppg=basic-tutorials.htm Collection of free QBasic Tutorials]
  • [http://quickbasic.free.fr Some programs with the sources]