Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

QBasic

From Wikipedia, the free encyclopedia
IDE for the BASIC programming language
Not to be confused withQuickBASIC.
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "QBasic" – news ·newspapers ·books ·scholar ·JSTOR
(September 2020) (Learn how and when to remove this message)
QBasic
ParadigmProcedural
DeveloperMicrosoft
First appeared1991; 34 years ago (1991)
Typing disciplineStatic,strong
OSMS-DOS,Windows 95,Windows 98,Windows Me,PC DOS,OS/2,eComStation,ArcaOS
LicenseProprietary
Influenced by
QuickBASIC,GW-BASIC
Influenced
FreeBASIC,QB64,SmallBasic

QBasic is anintegrated development environment (IDE) andinterpreter for a variety of dialects ofBASIC which are based onQuickBASIC. Code entered into the IDE is compiled to anintermediate representation (IR), and this IR is immediately executed on demand within the IDE.[1]

Like QuickBASIC, but unlike earlier versions of Microsoft BASIC, QBasic is astructured programming language, supporting constructs such assubroutines.[2]Line numbers, a concept often associated with BASIC, are supported for compatibility, but are not considered good form, having been replaced by descriptiveline labels.[1] QBasic has limited support for user-defined data types (structures), and several primitive types used to contain strings of text or numeric data.[3][4] It supports various inbuilt functions.

For its time, QBasic provided a state-of-the-art IDE, including adebugger with features such as on-the-fly expression evaluation and code modification.[citation needed]

History

[edit]

QBasic was intended as a replacement forGW-BASIC. It was based on the earlierQuickBASIC 4.5 compiler but without QuickBASIC's compiler and linker elements. Version 1.0 was shipped together withMS-DOS 5.0 and higher, as well asWindows 95,Windows NT 3.x, andWindows NT 4.0.IBM recompiled QBasic and included it inPC DOS 5.x, as well asOS/2 2.0 onwards.[5]eComStation andArcaOS, descended from OS/2 code, include QBasic 1.0. QBasic 1.1 is included with MS-DOS 6.x, and, withoutEDIT, inWindows 95,Windows 98 andWindows Me. Starting withWindows 2000, Microsoft no longer includes QBasic with their operating systems.[6]

Contents

[edit]

QBasic (as well as the built-inMS-DOS Editor) is backwards-compatible with DOS releases prior to 5.0 (down to at least DOS 3.20). However, if used on any8088/8086 computers, or on some80286 computers, the QBasic program may run very slowly, or perhaps not at all, due to DOS memory size limits. UntilMS-DOS 7, MS-DOS Editor andHelp required QBasic: theEDIT.COM andHELP.COM programs simply started QBasic in editor and help mode only, and these can also be entered by runningQBASIC.EXE with the/EDITOR and/QHELP switches (i.e., command linesQBASIC /EDITOR andQBASIC /QHELP).

QBasic came complete with four pre-written example programs. These wereNibbles, a variant of theSnake game;Gorillas, anartillery game;MONEY MANAGER, a personal finance manager; andRemLine, a Q-BASIC code line-number-removing program.[1]

QBasic has anEaster egg accessed by pressing and holdingLeft CTRL+Left SHIFT+Left ALT+Right CTRL+Right SHIFT+Right ALT simultaneously after running QBasic at the DOS prompt but before the title screen loads: this listsThe Team of programmers.[7]

See also

[edit]
  • FreeBasic – BASIC dialectPages displaying short descriptions of redirect targets
  • Microsoft Small Basic – Programming language dialect and development environment
  • QB64 – IDE for the BASIC programming language

References

[edit]
  1. ^abc"Differences Between GW-BASIC and QBasic". 2003-05-12. Archived fromthe original on 2008-02-21. Retrieved2020-09-05.
  2. ^"QBASIC Manual: SUB...END SUB Statement QuickSCREEN". Archived fromthe original on 2008-10-07. Retrieved2008-06-28.
  3. ^"QBASIC Manual: TYPE Statement QuickSCREEN". Archived fromthe original on 2017-03-24. Retrieved2008-06-28.
  4. ^"QBASIC Manual: Limits - Names, Strings, and Numbers". Archived fromthe original on 2016-03-04. Retrieved2008-06-28.
  5. ^"Microsoft BASIC version information". Retrieved2008-06-12.
  6. ^"QBasic Missing from Windows 2000". 2007-03-01. Archived fromthe original on 2010-11-16. Retrieved2008-06-12.
  7. ^"QBasic - Developer Credits". 1999-07-23. Retrieved2008-06-12.

External links

[edit]
Wikibooks has more on the topic of:QBasic
Dialects of theBASIC programming language (list)
Classic
Microsoft
Texas Instruments
Hewlett-Packard
Locomotive Software
Microcomputers
Minicomputers
Time-sharing computers
Other
Extenders
Procedure-
oriented
Proprietary
Free and
open source
Withobject
extensions
Proprietary
Free and
open source
RAD
designers
Proprietary
Free and
open source
Defunct
C,C++
Open source
Freeware
Retail
Discontinued
Java
Open source
Freeware
Retail
Discontinued
JavaScript
Open source
CLI (.NET)
Open source
Freeware
Retail
Discontinued
Flash
PHP
Open source
Proprietary
R
Python
Open source
Proprietary
Pascal,
Object Pascal
Open source
Freeware
Retail
Discontinued
BASIC
Open source
Freeware
Retail
Discontinued
Go
Open source
Freeware
Retail
Haxe
POP-11
Online
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=QBasic&oldid=1287118936"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp