110 likes | 232 Views
QuickBasic, developed by Microsoft and released in 1985, marked a significant advancement in BASIC programming. Its evolution includes the introduction of the Integrated Development Environment (IDE) in version 2 (1986) and further enhancements in version 4.5 (1988). QBasic, a simplified version, was included with DOS 5.0+. With features such as diverse data types (String, Integer, Long, Single, Double), logical operators, and program structures like IF...THEN...ELSE and DO WHILE, QuickBasic was designed for readability and writability, making it accessible to both novice and experienced programmers.
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