Quick BASIC
Quick BASIC , Acronyme of Quick B eginner' S has L-purpose S ymbolic I nstruction C ode, is a Environnement of development integrated of Microsoft allowing the edition, debugging, the execution and the compilation of the language BASIC under MS-DOS.
The compiler makes it possible to generate achievable .exe MS-DOS 16 bits using a compiler optimized for the 8088 (except in the last versions where special optimizations 286 can be selected) and of a linker.
There exists a version entitled Professional Development System (PDS) Quick BASIC Extended (QBX), whose numbers of version are equal to or higher than 7.x.
A version reduced, based on version 4.5 of the full version and named QBasic , was provided in its version 1.0 with the system MS-DOS and available on the CD-ROM of Windows 95 and Windows 98. With this version, the source code can be only interpreted, and not compiled in file .exe . Thus, to carry out such a program, the environment QBasic is necessary.
This program does not function on the systems Windows in their version 64 bits, because it is an application DOS 16 bits.
Hello World
Short cuts Keyboard
-
Ctrl+Break to stop the execution of the program.
- F5 to continue the execution of the program starting from the place where it stopped.
- Shift+F5 to start again the program since the beginning.
- F1 to reach the page of assistance of the instruction under the cursor.
- Shift+F1 to reach the synopsis of the assistance.
- F2 to sail between the main program and the procedures/functions.
- F8 to carry out the program instruction by instruction
- F9 to place a stagnation point (the execution stops at this place)
- ? at the beginning of line is automatically replaced by instruction PRINT
Some functions
- Print is used to post something on the screen
- Input is used to post a sentence, with waiting of answer
- Cls erases the screen
- Rnd is used to generate a random random number in the interval * Yew marks the condition
- If is associated with Then which gives the instruction which must occur if the condition is true
- If several instructions follow then, one uses End yew after the block of expressions
- the structure while… wend
- for structure… next
- the structure C… loop
with until:
the logical operators
- And (and) is used to combine two conditions
- Gold (Or)
…
Sample program under QBasic
Here a program coded in QBasic as well as comments. The comments will be in italic and the codewill be in fat.
- Kind of lotto:
This script is obviously only one outline of the language, one could add other functions to him (as the impossibility of miser more than one has some, like being able to play, not only once, but to play until one has more money… etc).
See too
FreeBASIC, another compiler mainly compatible with the QuickBasic code.
Some Bonds
- http://www.qbasic.com
- http://quickbasic.free.fr
- http://qbworld.free.fr
- http://qbasic.on.free.fr
- http://www.cybwarrior.com/articles/?id=6
- http://www.qbasicnews.com/
- http://www.ifrance.com/mediqb
| Random links: | Case of against-escarpe | BMP-1 | Kirsten Verdel | Price World Fantasy of the best collection | Přerov | Règlement |