Share to: share facebook share twitter share wa share telegram print page

QuickBASIC

QuickBASIC
Developer(s)Microsoft
Initial release1985; 39 years ago (1985)
Stable release
7 / 1990; 34 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

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. 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.[5] QuickBASIC could also be run on System 7, as long as 32-bit addressing was disabled.

Syntax example

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(N) AS INTEGER
FOR L = 1 TO N
    A(L) = INT(RND * 10 + 1)
NEXT
FOR X = 1 TO N
    FOR Y = 1 TO N - 1
        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

QuickBASIC has an unofficial community of hobby programmers who use the compiler to write video games, GUIs and utilities.[6][7][8] The community has dedicated several Web sites, message boards and online magazines to the language.[9][10]

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.[11][12] Alternatives to this include FreeBASIC and QB64, but they cannot yet run all QBasic/QuickBASIC programs.[13]

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.[14]

Successors

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.[15]

See also

References

  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. ^ QuickBASIC for Macintosh system requirements
  6. ^ "QBASIC Games Directory". 2008-11-29. Archived from the original on 4 September 2014. Retrieved 2008-12-28.
  7. ^ "GUI Reviews". 2008-12-19. Retrieved 2008-12-28.
  8. ^ "The (BASIC) GUI Blog". 2011-02-06. Retrieved 2011-02-06.
  9. ^ "Qbasic/Quickbasic News". 2008-12-26. Retrieved 2008-12-28.
  10. ^ "QB Express". Pete's QBASIC/QuickBasic Site. 2008. Retrieved 2008-12-28.
  11. ^ Pete Trbovich (2007-03-31). "HOWTO Play With Your Old QBasic Programs on Linux". Retrieved 2008-12-28.
  12. ^ Kiyote Wolf (2008-05-10). "Kiyote Wolf on a Variety of Subjects". QB Express. Retrieved 2008-12-28.
  13. ^ 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.
  14. ^ Mike Chambers (2008-07-12). "rubbermallet.org: Where QuickBASIC gets much more powerful". Retrieved 2008-12-28.
  15. ^ Virtanen, E. K. (2008-05-26). "Interview With Galleon". Archived from the original on March 6, 2016. Retrieved 2008-07-14.{{cite web}}: CS1 maint: unfit URL (link)

Read other articles:

Kekristenan Paulus atau teologi Paulus (juga Paulisme atau Paulanitas[1]), adalah teologi dan Kekristenan yang berkembang dari keyakinan dan doktrin yang dicetuskan oleh Rasul berkebangsaan Yahudi helenistik, Paulus melalui tulisan-tulisannya dan tulisan-tulisan Perjanjian Baru secara tradisional diatributkan kepadanya. Keyakinan-keyakinan Paulus berakar dalam Kekristenan Yahudi terawal Catatan Referensi Kutipan ke sumber web Kutipan ke sumber cetak ^ Ide 1993, hlm. 25. Sumber ce...

Sites recognized by the South African Heritage Resources Agency. Map all coordinates using: OpenStreetMap Download coordinates as: KML GPX (all coordinates) GPX (primary coordinates) GPX (secondary coordinates) This is a list of the heritage sites in Cape Town's Bo-Kaap as recognized by the South African Heritage Resources Agency.[1][2] For the purposes of this list all sites on the south eastern side of Lion's Head and signal hill, northwest of Buitengracht – New Church Str...

52e cérémonie des Tony Awards Tony Awards Organisé par l'American Theatre Wing Détails Date 7 juin 1998 Lieu Radio City Music Hall, New York États-Unis Présentateur Rosie O'Donnell Diffusé sur CBS Site web http://www.tonyawards.com Chronologie 51e cérémonie des Tony Awards 53e cérémonie des Tony Awards modifier  La 52e cérémonie des Tony Awards a eu lieu le 7 juin 1998 au Radio City Music Hall de New York et fut retransmise sur CBS. La cérémonie a réco...

Š-19 Role AirlinerType of aircraft National origin Czechoslovakia Manufacturer Letov First flight 1924 Primary user ČSA Number built 7 + 2 prototype Developed from Letov Š-6 The Letov Š-19 was an airliner produced in small numbers in Czechoslovakia during the 1920s. Design and development Following tests with an Š-6 bomber over domestic passenger routes, ČSA requested that a passenger-carrying version be developed. While retaining the basic layout of the Š-6, the Š-19 added a ful...

Hoài Tân Phường Phường Hoài Tân Hành chínhQuốc gia Việt NamVùngDuyên hải Nam Trung BộTỉnhBình ĐịnhThị xãHoài NhơnThành lập1/6/2020[1]Địa lýTọa độ: 14°28′12″B 109°0′28″Đ / 14,47°B 109,00778°Đ / 14.47000; 109.00778 Hoài Tân Vị trí phường Hoài Tân trên bản đồ Việt Nam Diện tích27,59 km²Dân số (2019)Tổng cộng18.096 ngườiMật độ656 người/km²KhácMã hành chính21673&#...

Caymanian hurdler For the Scottish artist, see Ronald Forbes (artist). Ronald ForbesPersonal informationBirth nameRonald Joseph ForbesNationalityCaymanianBorn (1985-04-05) 5 April 1985 (age 38)George Town, Cayman IslandsHeight1.92 m (6 ft 3+1⁄2 in)Weight93 kg (205 lb)SportCountry Cayman IslandsSportAthleticsEvent110-metre hurdlesCoached byJoey Scott (United States)Achievements and titlesOlympic finals2008 Beijing Olympics, 2012 London Olympics, 20...

Popular song by Michael Masser and Linda Creed For other uses, see The Greatest Love of All (disambiguation). The Greatest Love of AllOne of A-side track labels of the US vinyl releaseSingle by George Bensonfrom the album The Greatest soundtrack B-sideAli's ThemeReleasedJune 1977Recorded1977GenreSmooth jazzR&BsoulLength5:32 (Album full version) 3:29 (Single edited version)LabelAristaSongwriter(s)Michael Masser (composition)Linda Creed (lyrics)Producer(s)Michael MasserGeorge Benson singles...

  关于与「李鴻鈞 (1959年)」標題相近或相同的条目,請見「李鴻鈞」。 李鴻鈞 中華民國第6屆監察院副院長现任就任日期2022年5月30日总统蔡英文監察院長陳菊前任孫大川 親民黨第4屆秘書長任期2019年4月9日—2022年5月30日辭職主席宋楚瑜前任秦金生傅學鵬(代理)继任馬傑明(副秘書長代理,後真除) 中華民國第5-9屆立法委員任期2002年2月1日—2020年1月31...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada November 2022. Janina JaneckaLahir(1893-10-20)20 Oktober 1893Łódź, Polandia KongresMeninggal21 Februari 1938(1938-02-21) (umur 44)Warsawa, PolandiaPekerjaanPemeranTahun aktif1932-1938 Janina Janecka, nama sebenarnya Janina Dobrzyńska (20 Oktober 1893&#...

American rapper Tastemaker MusicBackground informationBorn (1983-12-07) December 7, 1983 (age 39)OriginBoston, Massachusetts, United StatesGenresAlternative hip hop, R&B, electro, pop rock, power popOccupation(s)Record producer, songwriter, rapper, musician,Years active2004–presentMembersNex Phaze (producer), Steve Morgan (producer) Tastemaker Music LLC (a.k.a. The Tastemakers) is a record production company, owned and operated by songwriter & multi-platinum selling record prod...

Cette liste est une ébauche concernant la Jordanie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Roi de Jordanie Armoiries royales. Titulaire actuelAbdallah IIdepuis le 7 février 1999 Création 1er avril 1921 (émir)25 mai 1946 (roi) Titre Roi de Jordanie Premier titulaire Abdallah Ier Résidence officielle Palais de Raghadan, Amman Site internet http://www.kingabdullah.jo/ modifier  Voici une liste des...

Malaysian association football club Football clubPDRMFull namePolis DiRaja Malaysia Football ClubNickname(s)Sang Saka Biru (The Cops)Sang Keris BiruHarimau Biru (The Blue Tiger)Short namePDRMFounded1990; 33 years ago (1990), as RMPFA or PDRM FA 2020; 3 years ago (2020), as PDRM FC (after owned by PDRM FC Sdn Bhd)[1]GroundPetaling Jaya StadiumCapacity18,000PresidentAcryl SaniCEOMohamad Hafiz Zainal AbidinManagerYunus AlifLeagueMalaysia Super League20...

Эта статья — о биологической роли эндогенного оксида азота (II). О химическом соединении смотрите см. Оксид азота (II). Эндогенный газ оксид азота (II) играет множество различных ролей в биологических организмах. Содержание 1 Синтез эндогенного моноксида азота 1.1 Д...

Book by Charles Fort For the same title by other authors, see Daniel Quinn and Tanith Lee. The Book of the Damned First edition coverAuthorCharles Hoy FortLanguageEnglishGenreAnomalisticsPublisherBoni and LiverightPublication date1919Media typePrint (hardcover and paperback)Pages229 pp (2006 paperback)ISBN1-58509-278-9 (2006 edition, paperback)OCLC82160299Followed byNew Lands  The Book of the Damned was the first published nonfiction work by American author Charles Fort (first ...

Badminton variation Ball Badminton, 2012 Ball badminton is a sport native to India. It is a racket sport game, played with a yellow ball made of wool, on a court of fixed dimensions (12 by 24 metres) divided by a net. The game was played as early as 1856 by the royal family in Tanjore, the capital of Thanjavur district in Tamil Nadu, India. It enjoys the greatest popularity in India. Ball badminton is a fast-paced game; it demands skill, quick reflexes, good judgment, agility, and the ability...

American-Finnish basketball player For the YouTuber, see Drew Gooden (YouTuber). Not to be confused with Drew Gordon. Drew GoodenGooden with the Washington Wizards in 2014Personal informationBorn (1981-09-24) September 24, 1981 (age 42)Oakland, California, U.S.Listed height6 ft 10 in (2.08 m)Listed weight250 lb (113 kg)Career informationHigh schoolEl Cerrito (El Cerrito, California)CollegeKansas (1999–2002)NBA draft2002: 1st round, 4th overall pickSelected by t...

Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Elf Dunia Tengah – berita · surat kabar · buku · cendekiawan · JSTOR (Oktober 2020) ElfFirst peopleFeanor dan Fingolfin, putra Finwe, tokoh sentral dalam The Simarillion.Dibangunkan saatZaman PertamaPenc...

State university in Andhra Pradesh, India Krishna UniversityMotto in EnglishEducation through competitionTypePublicEstablished2008 (2008)AffiliationUGC, AICTE,[1] AIU[2]ChancellorGovernor of Andhra PradeshVice-ChancellorProf. G. Gnana ManiLocationMachilipatnam, Andhra Pradesh, IndiaCampusRural, 100 acres (40 ha)Websitewww.kru.ac.in Krishna University (KrU) is a state university located in Rudravaram, Machilipatnam, Andhra Pradesh, India.[3] The universit...

Texas legislator Jacey JettonMember of the Texas House of Representativesfrom the 26th districtIncumbentAssumed office January 12, 2021Preceded byRick Miller Personal detailsBornJacey Ray Jetton (1983-09-14) September 14, 1983 (age 40)Political partyRepublicanSpouseFannyChildren2Residence(s)Richmond, Texas, U.S.Alma materFlorida Institute of Technology (BA)OccupationBusiness owner Jacey Ray Jetton (born September 14, 1983) is an American politician and business owner serv...

Bài viết này là một bài mồ côi vì không có bài viết khác liên kết đến nó. Vui lòng tạo liên kết đến bài này từ các bài viết liên quan; có thể thử dùng công cụ tìm liên kết. (tháng 7 2018) Musakondli—  Làng  — Quốc gia Ấn ĐộBangKarnatakaHuyệnTumkurThành phố/thị trấnGubbiMúi giờIST (UTC+5:30) Musakondli là một làng thuộc tehsil Gubbi, huyện Tumkur, bang Karnataka, Ấn ...

Kembali kehalaman sebelumnya