I was able to create a login program in qbasic with this simple code:
cls
1 input "Username: " , username$
if username$ <> "Define what you want your name to be here (use the quotes)" then goto 1
else input "Password: " , password$
if password$ <> "Again define using quotes" then goto 1 else print "You have successfully logged in!"
Hope this helps!
===
I would have rewritten the above code...-without using outdated line numbers/being combined together with goto statements-...as being the following...
'*** set username/password...
userName$="abc"
passWord$="123"
'*** get username/password
DO
CLS
PRINT "Log in..."
INPUT "Username: ", guessUserName$
INPUT "Password: ", guessPassWord$
LOOP UNTIL guessUserName$=userName$ AND guessPassWord$=passWord$
'*** print welcome screen...
CLS
PRINT TIME$ + " " + DATE$
PRINT "Congratulations, "; userName$; ", you have successfully logged in!"
There is no shortcut key of input in qbasic
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators
Qbasic and Quickbasic are not the same! Qbasic was a free interpreter that Microsoft included with MS-DOS. Although Quickbasic uses similar syntax as quickbasic it allows programs to be compiled.
the two types of data used in Qbasic is numeric data and alpha numeric data.
The default screen mode for Qbasic is 0.
the extensions of qbasic are that, there are only 80 pixels to write in the qbasic
In QBasic, a command is a specific instruction that tells the computer to perform a particular action. Commands can include operations like inputting data, performing calculations, controlling program flow (such as loops and conditionals), and outputting results. Examples of common QBasic commands include PRINT, INPUT, IF...THEN, and FOR...NEXT. These commands form the building blocks of QBasic programs, allowing users to create various applications and scripts.
Willim Seward Burroughs was the first to create a working calculator.
qbasic is important because its technology
There is no shortcut key of input in qbasic
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators
Difference between QBASIC and GWBASIC?
nose
Qbasic and Quickbasic are not the same! Qbasic was a free interpreter that Microsoft included with MS-DOS. Although Quickbasic uses similar syntax as quickbasic it allows programs to be compiled.
QBASIC keywords are reserved words that have special meanings and functions within the QBASIC programming language. They include commands like PRINT, INPUT, IF, FOR, NEXT, and END, which control the flow of the program and perform specific actions. These keywords cannot be used as variable names, as they are integral to the syntax and operation of QBASIC. Understanding these keywords is essential for writing effective QBASIC programs.
CHOICE OF EITHER 32 BIT/OR ELSE, 64 BIT QBASIC PROGRAM VERSIONS There are both 32 bit/64 bit QBASIC program versions. You have to select which is the correct version that will run on your own operating system. For example,... -> Windows 95/98/XP, runs the 32 bit version(s) -> Windows 7 runs the 64 bit version CHOICE OF EITHER QBASIC 'INTERPRETER'/OR ELSE, 'COMPILER' VERSIONS QBASIC Version 1.1 was the original version; however, it is 'interpreter' only. This means you CANNOT use it to create stand alone [.exe]cutable files with. QBASIC Version 4.5 is a 'compiler' version; which CAN be used to create stand alone [.exe]cutable files with. QB64 is the 64 bit 'compiler' version which runs on 64 bit platforms; it can also be used to create stand alone [.exe]cutable files with.
microsoft