110 likes | 223 Views
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.
E N D
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 • string$ • integer% • long& • single! • double#
Data Types • string$ • integer% • long& • single! • double# DIM name AS type DIM name(x, y, z, …) AS type
Arithmetic, Relational, and Logical Operators • Exponentiation • Negation • Multiplication • Division • Modulo Arithmetic • Addition • Subtraction ^ - * / MOD + -
Arithmetic, Relational, and Logical Operators • Equal To • Greater Than • Less Than • Not Equal To • Less Than or Equal To • Greater Than or Equal To = > < <> <= >=
Arithmetic, Relational, and Logical Operators • Not • And • Or • Exclusive Or • Equivalent • Material Implication NOT AND OR XOR EQV IMP
Program Structure • IF…THEN…ELSE • SELECT CASE…CASE1…CASE2…CASE ELSE…END SELECT • DO WHILE…LOOP • DO UNTIL…LOOP • FOR…NEXT
Error Handling SELECT ERR CASE = 1 Code block CASE = 2 Code block … CASE = 3 Code block CASE = 64 Code block RESUME NEXT
Evaluation • Readability • English-like syntax • Writability • Long winded • Reliability • Interpreter vs. Compiler • Cost • MSDN Subscription