Want this question answered?
-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324
print screen key takes almost a picture of what is currenly on your compuer screen
QBASIC code/Editor Screen (Press key [F5] to make the program RUN/execute...) ==== (Pressing any key returns you straight back to the Editor screen; where you can either chose to further Edit/Re-Run/or else, Save your program.) Here is another example. CLS COLOR 15, 4, 14 PRINT "Press any key to continue" DO WHILE INKEY$ = "" LOOP FOR c = 1 TO 20 COLOR c, 0 PRINT "Replace this with the name you want to display" NEXT c COLOR 15, 0 END
plasma screen
The screen
clear clears the screen.
cls
The command CLS clears the screen and resets the location of the command prompt to the top of the screen. This is similar to the Unix command clear.
The default screen mode for Qbasic is 0.
print the contents of a text file onto the screen (like the "type" command in DOS).
There is no shortcut key of input in qbasic
Yes, but the easiest way is to click File > Mail Contents of This Page. You can also copy the screen by hitting Shift > Command > 3. Or you can copy a portion of the screen by hitting Shift > Command > 4 and highlighting what you want to copy.
Print Screen, usually abreviated as "prt sc" or similar. it is normally located with the other mystery keys on top right of board...
-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324
IF THE QBASIC IDE/INTEGRATED DEVELOPEMENT ENVIRONMENT *IS* ALREADY OPEN Inside of QBASIC IDE/Integrated Development Environment...; you load in QBASIC programs as follows... 1. Use your mouse to click the QBASIC Menu option being seen top right... File > Open ...then, browse through the file list box to load your chosen program file. 2. Alternatively, you can also use keyboard short cut... [ALT]+[F], this opens up the file menu...then, press [O] ...does exactly the same as above IF THE QBASIC IDE/INTEGRATED DEVELOPMENT ENVIRONMENT IS *NOT* ALREADY OPEN 3. Another way is to open up a command line window prompt: (>)... Click [Start] button ...then, type: Command .../or, type: Cmd ...at least, one of the above should work... ...and, run the QBASIC program from there... by typing in after the command line prompt: (>)... c:\> cd, means, change directory folder... cd C:\pathToQbasic For example the file path name to where my version of QBASIC is stored here... c:\basic\qb64 So, I would first change to this folder directory by typing in after the prompt: (>)... c:\>cd c:\basic\qb64 ...this changes my command line prompt: (>) to say... c:\basic\qb64> Inside of the [qb64] folder directory, I wrote a very simple program called: hw.bas ...which contains the following single line of code... PRINT "Hello, world!" I can launch both the QBASIC program: [qb64.exe]/and, at the same time load in my chosen program file: [hw.bas], by typing after the command line prompt: (>)... C:\Basic\qb64>qb64 hw.bas ...the QBASIC program instantly loads: [qb64.exe]/with the program file [hw.bas] already being displayed inside of the Editor Screen. Next, I only need to press function key [F5] to RUN/make that program file execute... QBASIC Output Screen... Hello, world! Press any key to continue...
You need the screen coordinates of the end-points. That's another whole topic.Say the end-points are (A,B) and (C,D).To draw a solid line connecting these points:LINE (A,B) - (C,D)
It's called an Enhanced Screen Tip.enhanced screen tipEnhanced Screen Tip