1 / 11

QuickBasic

QuickBasic. Jason Mallory. History. Released in 1985 Version 2 introduced the IDE in 1986 Version 4.5 released in 1988 QBasic was distributed with DOS 5.0 + BASIC Professional Development System. Data Types. String Integer Long Integer Single Precision Double Precision. Data Types.

gala
Télécharger la présentation

QuickBasic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. QuickBasic Jason Mallory

  2. History • Released in 1985 • Version 2 introduced the IDE in 1986 • Version 4.5 released in 1988 • QBasic was distributed with DOS 5.0 + • BASIC Professional Development System

  3. Data Types • String • Integer • Long Integer • Single Precision • Double Precision

  4. Data Types • string$ • integer% • long& • single! • double#

  5. Data Types • string$ • integer% • long& • single! • double# DIM name AS type DIM name(x, y, z, …) AS type

  6. Arithmetic, Relational, and Logical Operators • Exponentiation • Negation • Multiplication • Division • Modulo Arithmetic • Addition • Subtraction ^ - * / MOD + -

  7. Arithmetic, Relational, and Logical Operators • Equal To • Greater Than • Less Than • Not Equal To • Less Than or Equal To • Greater Than or Equal To = > < <> <= >=

  8. Arithmetic, Relational, and Logical Operators • Not • And • Or • Exclusive Or • Equivalent • Material Implication NOT AND OR XOR EQV IMP

  9. Program Structure • IF…THEN…ELSE • SELECT CASE…CASE1…CASE2…CASE ELSE…END SELECT • DO WHILE…LOOP • DO UNTIL…LOOP • FOR…NEXT

  10. Error Handling SELECT ERR CASE = 1 Code block CASE = 2 Code block … CASE = 3 Code block CASE = 64 Code block RESUME NEXT

  11. Evaluation • Readability • English-like syntax • Writability • Long winded • Reliability • Interpreter vs. Compiler • Cost • MSDN Subscription

More Related