4月2号什么星座| 经期吃什么补气血| 什么情况下会怀孕| 腹部胀气吃什么药| 牙胶是什么| dr是什么检查| 三伏贴是什么| 小祖宗是什么意思| 甜瓜是什么瓜| 经常吃蜂蜜有什么好处| 小孩瘦小不长肉是什么原因| 道和集团是干什么的| 什么是正装女士| wonderful什么意思| panadol是什么药| 女性尿道出血是什么原因引起的| 胃不好可以喝什么茶| 狂犬疫苗什么时候打| 不堪入目是什么意思| 关节炎吃什么药最好| essential是什么意思| 东京热是什么| 青青的什么| 血糖低有什么症状| 面肌痉挛挂什么科| 肾虚有什么症状| 精力旺盛是什么意思| 什么是什么的摇篮| 什么是癔症病| 1893年属什么生肖| 高考600多分能上什么大学| 猪八戒叫什么名字| 什么人不能吃狗肉| 什么是崩漏| 爱上一个人是什么感觉| 孕检唐筛是检查什么的| 吃什么食物对心脏好| 结婚送什么| 尿路感染 吃什么| 腿不自觉的抖是什么原因| 面诊是什么意思| 肤浅什么意思| 中国古代四大发明是什么| 聪明如你什么意思| 长沙有什么山| 戾气是什么意思| 高密度脂蛋白胆固醇偏低是什么原因| 且慢是什么意思| 皮赘是什么| esp是什么意思| 肝硬化是什么原因引起的| 惊恐症是什么病| 肾看什么科| 什么是肝癌| 八一年属什么生肖| 惨无人道是什么意思| 争辩的近义词是什么| 吃什么尿酸降得快| 施华洛世奇算什么档次| 些几 是什么意思| 乐观是什么意思| 95棉5氨纶是什么面料| 12月3号是什么星座| 次长是什么职位| 8月19日是什么星座| 感激涕零什么意思| 河马吃什么| boxing是什么意思| 为什么喝咖啡会拉肚子| 为什么会得皮炎| 懦弱的反义词是什么| 扁平疣用什么药膏| 复查是什么意思| 经常爱放屁是什么原因| 虚热吃什么药| 午时是什么时间| hape是什么牌子| ph阳性是什么意思| pinsp呼吸机代表什么| 冷冻和冷藏有什么区别| 下焦不通吃什么中成药| 部队指导员是什么级别| 做脑部ct挂什么科| 秋葵有什么功效| 白浆是什么| 秦始皇是什么民族| 蜥蜴什么动物| 恶搞是什么意思| 第一次坐飞机要注意什么| 天天射精对身体有什么危害| 荞麦枕头有什么好处| 杨新鸣包贝尔什么关系| resp是什么意思| 怀女孩有什么征兆| 濡湿是什么意思| 鞋履是什么意思| beyond什么意思| 昌字五行属什么| 前辈是什么意思| 白细胞高一点点是什么原因| 头疼是为什么| 呼风唤雨的动物是什么生肖| 影像是什么意思| 耳后长痣代表什么意思| 发烧酒精擦什么部位| 额头上长痘痘是什么原因| 胆固醇高挂什么科| 额头上长小疙瘩是什么原因| 粉色药片是什么药| 生普洱和熟普洱有什么区别| 单招是什么学历| 心包填塞三联征是什么| 姑婆的儿子叫什么| 婴儿的腿为什么是弯弯的| 什么时候喝牛奶最好| mchc偏低是什么意思| 祥五行属什么| 肌酐高吃什么药好| st是什么意思| 肝胆湿热吃什么中成药最好| 胃疼喝什么药| 小猫为什么会踩奶| 被蜜蜂蛰了有什么好处| 20度穿什么| 什么是点映| 少量盆腔积液是什么意思| 什么是制动| 篱笆是什么| 桥本甲状腺炎是什么意思| 为什么来月经会拉肚子| 二级产前超声检查是什么| 生龙活虎是什么意思| 冬至为什么吃饺子| 对牛弹琴告诉我们什么道理| 鼻涕有血丝是什么原因| 6月30日是什么日子| 鸡蛋属于什么类食品| 亚临床甲减是什么意思| 病毒性发烧吃什么药| 体罚是什么意思| 老人适合喝什么茶| 阳痿吃什么好| ab型血和o型血的孩子是什么血型| 西加一横读什么| 祁是什么意思| 感染科主要看什么病| 药流后吃什么消炎药| 耳火念什么| 经常扁桃体发炎是什么原因| 血脂高有什么症状表现| 肺炎衣原体和支原体有什么区别| 肝钙化灶是什么意思| 3.13是什么星座| 林心如什么学历| 什么是石斛| 多梦吃什么药| 糖类抗原199偏高是什么原因| 为什么喜欢秋天| 矫枉过正什么意思| 男士适合戴什么手串| 行云流水是什么意思| 七月四号是什么星座| 什么食物含叶酸多| 为什么喝中药越来越胖| 血液四项检查是什么| 宝宝什么时候可以吃盐| 宫颈纳氏囊肿什么意思| 处女男和什么星座最配| 外阴白斑有什么症状| 醋蛋液主要治什么| 梅花鹿吃什么| 扑炎痛又叫什么| 罗非鱼吃什么| 导管子是什么意思| 女性朋友生日送什么礼物好| 心慌是什么原因导致的| 男生为什么要做包皮手术| 坐飞机要带什么证件| 肾炎的饮食应注意什么| 为什么白带是黄色的| 冠脉ct和冠脉造影有什么区别| singing是什么意思| 军用水壶为什么是铝的| 什么是部首| 属鸡的女生和什么属相最配| 睡觉爱做梦是什么原因| 半什么三什么| 男人太瘦吃什么可以长胖| 什么最解渴| 氨咖黄敏胶囊是治什么的| 田反念什么| 万言万当不如一默是什么意思| 玻璃体切除后对眼睛有什么影响| 手腕痛是什么原因| 蜱虫是什么虫| 知恩图报是什么意思| 老年性脑改变是什么意思| 梦见把头发剪短了是什么意思| 什么不导电| 蛋白质用什么试剂鉴定| 眼睛看东西模糊是什么原因| 什么鸣什么盗| 阴毛有什么用| 什么叫柏拉图式的爱情| 脾虚湿蕴证是什么意思| 什么是烂尾楼| 挺拔的意思是什么| 嘴唇一圈发黑是什么原因造成的| mnm是什么单位| 巡抚相当于现在的什么官| 梦见吃饭是什么预兆| 智多星是什么意思| 面起子是什么| 血管瘤是什么症状| 25羟维生素d测定是什么| 隐忍是什么意思| 入定是什么意思| 握手是什么意思| 卧虎藏龙是什么生肖| dvt是什么意思| 山代表什么动物| 小手指麻木是什么原因| lv属于什么档次| 查宝宝五行八字缺什么| 血压测不出来什么原因| 肺炎吃什么药最有效| 石决明是什么| 头发长得快是什么原因| 瑶五行属什么| 小产可以吃什么水果| 17数字代表什么意思| 荡漾什么意思| 理数是什么意思| 一什么金光| 海誓山盟是什么意思| 小布丁是什么意思| 交友是什么意思| 肝硬化失代偿期是什么意思| 马蜂蛰了用什么药| 过路车是什么意思| 盐和醋泡脚有什么好处| 为什么夏天吃姜好| 什么的秋天| 淋巴细胞百分比偏高是什么原因| 黄河水为什么是黄的| 云南白药草长什么样| 孩子吃什么容易长高| 癫痫病是什么病| 磷脂是什么东西| 济州岛有什么好玩的| 上皮内低度病变是什么意思| 开救护车需要什么条件| 单个室早是什么意思| 梦见自己拉屎是什么意思| 儿童手足口病吃什么药| 经常生闷气会得什么病| 不良于行是什么意思| 万象更新什么意思| 头昏挂什么科| 水瓶男和什么星座最配| 6月27号是什么星座| 淫羊藿是什么| 长长的柳条像什么| 媚字五行属什么| 百度Jump to content

西安楼市调控升级:商贷首付最低30% 三套房停贷

From Wikipedia, the free encyclopedia
QuickBASIC
Developer(s)Microsoft
Initial release1985; 40 years ago (1985)
Stable release
7 / 1990; 35 years ago (1990)
Operating systemMS-DOS, Classic Mac OS
Platformx86, Motorola 68000
TypeMicrosoft BASIC
LicenseProprietary
百度 今天我们如何过清明,从形式到内容都值得深思。

Microsoft QuickBASIC (also QB) is an Integrated Development Environment (or IDE) and compiler for the BASIC programming language that was developed by Microsoft. QuickBASIC runs mainly on DOS, though there was also a short-lived version for the classic Mac OS. It is loosely based on GW-BASIC but adds user-defined types, improved programming structures, better graphics and disk support and a compiler in addition to the interpreter. Microsoft marketed QuickBASIC as the introductory level for their BASIC Professional Development System.[1] Microsoft marketed two other similar IDEs for C and Pascal, viz QuickC and QuickPascal.

History

[edit]

Microsoft released the first version of QuickBASIC on August 18, 1985 on a single 5.25-inch 360 KB floppy disk. QuickBASIC version 2.0 and later contained an Integrated Development Environment (IDE), allowing users to edit directly in its on-screen text editor.

Although still supported in QuickBASIC, line numbers became optional. Program jumps also worked with named labels. Later versions also added control structures, such as multiline conditional statements and loop blocks.

Microsoft's "PC BASIC Compiler" was included for compiling programs into DOS executables. Beginning with version 4.0, the editor included an interpreter that allowed the programmer to run the program without leaving the editor. The interpreter was used to debug a program before creating an executable file. Unfortunately, there were some subtle differences between the interpreter and the compiler, which meant that large programs that ran correctly in the interpreter might fail after compilation, or not compile at all because of differences in the memory management routines.[2]

The last version of QuickBASIC was version 4.5 (1988), although development of the Microsoft BASIC Professional Development System (PDS) continued until its last release of version 7.1 in October 1990.[3] At the same time, the QuickBASIC packaging was silently changed so that the disks used the same compression used for BASIC PDS 7.1.[4] The Basic PDS 7.x version of the IDE was called QuickBASIC Extended (QBX), and it only ran on DOS, unlike the rest of Basic PDS 7.x, which also ran on OS/2.

QuickBASIC 4.5 was the subject of numerous books, articles, and programming tutorials, and arrived near the high-point of BASIC saturation in the PC marketplace. In 1989, Microsoft Press bundled the QuickBASIC Interpreter into a book-and-software learning system called Learn BASIC Now. The product was priced at $39.95 and included a Foreword written by Bill Gates, who reported that BASIC was in active use by over four million PC users.[5]

The successor to QuickBASIC and Basic PDS was Visual Basic version 1.0 for MS-DOS, shipped in Standard and Professional versions. Later versions of Visual Basic did not include DOS versions, as Microsoft concentrated on Windows applications.

A subset of QuickBASIC 4.5, named QBasic, was included with MS-DOS 5 and later versions, replacing the GW-BASIC included with previous versions of MS-DOS. Compared to QuickBASIC, QBasic is limited to an interpreter only, lacks a few functions, can only handle programs of a limited size, and lacks support for separate program modules. Since it lacks a compiler, it cannot be used to produce executable files, although its program source code can still be compiled by a QuickBASIC 4.5, PDS 7.x or VBDOS 1.0 compiler, if available.

QuickBASIC 1.00 for the Apple Macintosh operating system was launched in 1988. It was officially supported on machines running System 6 with at least 1 MB of RAM.[6] QuickBASIC could also be run on System 7, as long as 32-bit addressing was disabled. QuickBASIC programming was significantly different on the Macintosh, because the system offered a graphical user interface and an event-driven programming model.[7]

Syntax example

[edit]

Hello, World, shortest version:

?"Hello, World"

Hello, World, extended version:

CLS
PRINT "Hello, World"
END

99 Bottles of Beer:

LET BOTTLES = 99: LET BOTTLES$ = "99": LET BOTTLE$ = " bottles"
FOR A = 1 TO 99
PRINT BOTTLES$; BOTTLE$; " of beer on the wall, "; BOTTLES$; BOTTLE$; " of beer."
LET BOTTLES = BOTTLES - 1
IF BOTTLES > 0 THEN LET BOTTLES$ = LTRIM$(STR$(BOTTLES)): LET PRONOUN$ = "one"
IF BOTTLES = 0 THEN LET BOTTLES$ = "no more": LET PRONOUN$ = "it"
IF BOTTLES <> 1 THEN LET BOTTLE$ = " bottles"
IF BOTTLES = 1 THEN LET BOTTLE$ = " bottle"
PRINT "Take "; PRONOUN$; " down and pass it around, "; BOTTLES$; BOTTLE$; " of beer on the wall."
PRINT: NEXT A
PRINT "No more bottles of beer on the wall, no more bottles of beer."
PRINT "Go to the store and buy some more, 99 bottles of beer on the wall."

Graphics example:

SCREEN 13
DIM a(3976) AS INTEGER, b(3976) AS INTEGER, c(3976) AS INTEGER
DIM d(3976) AS INTEGER, e(3976) AS INTEGER
col% = 16: col1% = 16: col2% = 16: col3% = 16: col4% = 16
col5% = 16: col6% = 16: col7% = 16: flag = 1: flag1 = 1
flag2 = 1: flag3 = 1:flag4 = 1: flag5 = 1: flag6 = 1: flag7 = 1
DO
    GET (1, 38)-(318, 62), a
    PUT (2, 38), a, PSET
    LINE (1, 38)-(1, 62), col%
    IF flag = 1 THEN col% = col% + 1: IF col% = 32 THEN flag = 2
    IF flag = 2 THEN col% = col% - 1: IF col% = 16 THEN flag = 1
    GET (2, 63)-(319, 87), b
    PUT (1, 63), b, PSET
    LINE (319, 63)-(319, 87), col1%
    IF flag1 = 1 THEN col1% = col1% + 1: IF col1% = 32 THEN flag1 = 2
    IF flag1 = 2 THEN col1% = col1% - 1: IF col1% = 16 THEN flag1 = 1
    GET (1, 88)-(318, 112), c
    PUT (2, 88), c, PSET
    LINE (1, 88)-(1, 112), col2%
    IF flag2 = 1 THEN col2% = col2% + 1: IF col2% = 32 THEN flag2 = 2
    IF flag2 = 2 THEN col2% = col2% - 1: IF col2% = 16 THEN flag2 = 1
    GET (2, 113)-(319, 137), d
    PUT (1, 113), d, PSET
    LINE (319, 113)-(319, 137), col3%
    IF flag3 = 1 THEN col3% = col3% + 1: IF col3% = 32 THEN flag3 = 2
    IF flag3 = 2 THEN col3% = col3% - 1: IF col3% = 16 THEN flag3 = 1
    GET (1, 138)-(318, 162), e
    PUT (2, 138), e, PSET
    LINE (1, 138)-(1, 162), col4%
    IF flag4 = 1 THEN col4% = col4% + 1: IF col4% = 32 THEN flag4 = 2
    IF flag4 = 2 THEN col4% = col4% - 1: IF col4% = 16 THEN flag4 = 1
LOOP UNTIL LEN(INKEY$)

Bubble sort:

REM sample of bubble sort
N = 10
DIM A(1 TO N) AS INTEGER
FOR L = 1 TO N
    A(L) = INT(RND * 10 + 1)
NEXT
FOR X = 1 TO N - 1
    FOR Y = X + 1 TO N
        IF A(X) < A(Y) THEN SWAP A(X), A(Y)
    NEXT
NEXT
FOR L = 1 TO N
    PRINT A(L)
NEXT
END

Current uses

[edit]

QuickBASIC has a community of hobby programmers who use the compiler to write video games, GUIs and utilities.[8][9][10] The community has several Web sites, message boards and online magazines.[11][12]

Today, programmers sometimes use DOS emulators, such as DOSBox, to run QuickBASIC on Linux and on modern personal computers that no longer support the compiler.[13][14] Alternatives to this include FreeBASIC and QB64, but they cannot yet run all QBasic/QuickBASIC programs.[15]

Since 2008, a set of TCP/IP routines for QuickBASIC 4.x and 7.1 has revitalized some interest in the software. In particular, the vintage computer hobbyist community has been able to write software for old computers that run DOS, allowing these machines to access other computers through a LAN or the internet. This has allowed systems even as old as an 8088 to serve new functions, such as acting as a Web server or using IRC.[16]

Successors

[edit]

Microsoft's Visual Basic was the successor of QuickBASIC. Other compilers, like PowerBASIC and FreeBASIC, have varying degrees of compatibility. QB64, a multiplatform QuickBASIC to C++ translator, retains close to 100% compatibility and compiles natively for Windows, Linux and macOS.[17]

See also

[edit]

References

[edit]
  1. ^ Early Microsoft documentation rendered the name exclusively as "QuickBASIC", although later references on Microsoft's Web site also use "QuickBasic".
  2. ^ Microsoft Knowledge Base 45850: Memory Management in QuickBasic & Basic Compiler
  3. ^ QuickBASIC 4.5 was delivered on a set of five 360 KB 5.25-inch DSDD floppy disks or three 720 KB 3.5-inch DSDD floppy disks. The three-disk version could also be installed from 1.2 MB 5.25-inch or 1.44 MB 3.5-inch DSHD disks. To save costs, the files were compressed and later versions were shipped on just four 5.25-inch disks or two 3.5-inch disks.
  4. ^ Microsoft Knowledge Base article 65291
  5. ^ Gates, Bill; Halvorson, Michael; Rygmyr, David (1989). Learn BASIC Now. Redmond, WA: Microsoft Press. p. ix.
  6. ^ QuickBASIC for Macintosh system requirements
  7. ^ Halvorson, Michael; Rygmyr, David (1990). Learn BASIC for the Apple Macintosh Now. Redmond, WA: Microsoft Press.
  8. ^ "QBASIC Games Directory". 2025-08-07. Archived from the original on 4 September 2014. Retrieved 2025-08-07.
  9. ^ "GUI Reviews". 2025-08-07. Retrieved 2025-08-07.
  10. ^ "The (BASIC) GUI Blog". 2025-08-07. Retrieved 2025-08-07.
  11. ^ "Qbasic/Quickbasic News". 2025-08-07. Retrieved 2025-08-07.
  12. ^ "QB Express". Pete's QBASIC/QuickBasic Site. 2008. Retrieved 2025-08-07.
  13. ^ Pete Trbovich (2025-08-07). "HOWTO Play With Your Old QBasic Programs on Linux". Archived from the original on 2025-08-07. Retrieved 2025-08-07.
  14. ^ Kiyote Wolf (2025-08-07). "Kiyote Wolf on a Variety of Subjects". QB Express. Retrieved 2025-08-07.
  15. ^ For example, FreeBASIC does not yet support QBasic's "ON PLAY" callback for background music, or the use of PEEK and POKE to I/O ports.
  16. ^ Mike Chambers (2025-08-07). "rubbermallet.org: Where QuickBASIC gets much more powerful". Retrieved 2025-08-07.
  17. ^ Virtanen, E. K. (2025-08-07). "Interview With Galleon". Archived from the original on March 6, 2016. Retrieved 2025-08-07.
[edit]
小孩黑眼圈很重是什么原因 黄芪什么人不能喝 萎缩性胃炎不能吃什么食物 什么牌子的氨基酸洗面奶好 七十岁老人装什么牙合适
西游记是一部什么小说 什么事情 阴唇为什么一大一小 小苏打和食用碱有什么区别 抛光是什么意思
朱元璋是什么民族 712什么星座 内分泌紊乱是什么意思 尿隐血十一是什么意思 什么的风
尾椎骨疼挂什么科 1989是什么生肖 排毒吃什么最好能排脸上毒 蛋白粉什么时候吃最好 梦见输钱是什么预兆
无缝衔接什么意思ff14chat.com 蹦迪是什么意思helloaicloud.com 为什么挠脚心会痒hcv8jop5ns3r.cn 裸眼视力是什么意思hcv8jop4ns7r.cn 夜来非是什么意思helloaicloud.com
糖耐量受损是什么意思hcv8jop3ns7r.cn 奶瓶pp和ppsu有什么区别hcv8jop6ns9r.cn 十二指肠胃溃疡吃什么药hcv8jop3ns5r.cn 鸡蛋有什么营养onlinewuye.com 山竹树长什么样hcv8jop7ns7r.cn
高丽参是什么参hcv9jop3ns4r.cn 鱼香肉丝用什么肉做hcv8jop0ns7r.cn 为什么要拔智齿hcv7jop9ns2r.cn 田螺小子是什么意思hcv8jop4ns0r.cn 黄茶是什么茶hcv9jop1ns5r.cn
抑郁症吃什么食物好hcv9jop6ns6r.cn 家有喜事指什么生肖hcv9jop8ns3r.cn 318是什么日子hcv9jop5ns3r.cn xl是什么码xinmaowt.com 青霉素v钾片治什么病hcv7jop6ns3r.cn
百度