Category:QB64
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
Parameter passing methods: | By reference, By value |
Lang tag(s): | qb64 |
See Also: |
|
QB64 is a self-hosting BASIC compiler for Windows, Linux and Mac OS X, designed to be compatible with QBASIC and QuickBASIC. QB64 is a C++ emitter, which is integrated with a C++ compiler to provide compilation via C++ code and GCC optimization.
QB64 implements most QBASIC statements, and can run many QBASIC programs, including Microsoft's "Gorillas" and "Nibbles" QBASIC games. Furthermore, QB64 has been designed to contain an IDE resembling the QBASIC IDE. QB64 also extends the QBASIC programming language to include 64-bit data types, as well as better sound and graphics support.
QB64's syntax is designed to be completely backwards compatible with QuickBASIC. Line numbers are not required, and statements are terminated by newlines or by colons (:).
An example of the "Hello, World" program is: PRINT "Hello, World!"
QB64's extended commands begin with an underscore in order to avoid conflicts with any names that may be used in a QuickBASIC program. QB64 extends the QuickBASIC language in several ways. It adds the new data types including _BIT, _BYTE, _INTEGER64 and _FLOAT as well as unsigned data types. The new data types have suffixes just like the traditional BASIC data types.
- With the release of v.1.4 on February 13, 2020, the new command $NOPREFIX allows all QB64 functions and statements to be used without the leading underscore (_). This was done to help save time typing extended commands since it was determined that many programmers were no longer simply transcribing old code but rather were writing original programs using the full QB64 command set.
QB64 also includes an audio library which allows playing most common audio formats including MP3, Ogg Vorbis, and WAV files as well as libraries allowing users to use higher resolution graphics than the 640×480 offered by QuickBASIC, use different fonts, and plot images in BMP, PNG, and JPEG format. It also allows the use of 32-bit colors as opposed to the limited 256 (or 16, depending) colors originally offered. The programmer also does not have to specify which programming libraries to include since QB64 does it automatically. The programmer has the option to include a library of their own through the $INCLUDE command just as QuickBASIC did.
See also
Pages in category "QB64"
The following 163 pages are in this category, out of 163 total.
2
A
- A+B
- ABC correlation
- Abstract type
- Address of a variable
- Alternade words
- Anagrams
- Animate a pendulum
- Append numbers at same position in strings
- Apply a callback to an array
- Arithmetic/Integer
- Array concatenation
- Array length
- Arrays
- Assertions
- Associative array/Iteration
- Associative array/Merging
- Averages/Mean angle
B
C
D
E
F
G
H
L
M
P
S
- Safe primes and unsafe primes
- Show ASCII table
- Show the (decimal) value of a number of 1s appended with a 3, then squared
- Sierpinski carpet
- Sorting algorithms/Bead sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Radix sort
- Soundex
- Split a character string based on change of character
- String append
- String case
- String comparison
- String concatenation
- String interpolation (included)
- String length
- String matching
- String prepend
- Substring
- Sum of a series
- Sum of first n cubes
- Super-Poulet numbers
- Superellipse
- Sync subtitles