Questions tagged [qbasic]

QBasic is a general-purpose interpreted programming language derived from QuickBasic 4.5. QBasic replaced GWBasic starting from MSDOS 5. It became popular, because it had a quite advanced IDE with a debugger and was delivered free with MSDOS, Windows 95 and 98. The well-known game 'Nibbles' was written in QBasic. QBasic was written by Paul Allen (Microsoft) in 1991. Also see [tag:quickbasic]

QBasic replaced GWBasic starting from MSDOS 5. It became popular, because it had a quite advanced IDE with a debugger and was delivered free with MSDOS, Windows 95 and 98. The well-known game 'Nibbles' was written in QBasic. QBasic was written by Paul Allen (Microsoft) in 1991.

You are able to make some code samples for your questions via Repl.it online interpreter for QBasic

Also see

178 questions
0
votes
1 answer

Python code translation issue or language difference in random number generation

I'm new to Python and have no experience with QBasic. I was running a simulation in Python that came up with theoretically wrong values. I then ran it in QBasic and came up with theoretically predicted values. Here are the test cases. I'm only…
stackuser
  • 869
  • 16
  • 34
0
votes
1 answer

cpp win7 console without scrollbars

I'd like to remove the scrollbars from my console (like in the edit-command) because i want to make a qbasic-like program. I know that here is a thread but it does not work for me in windows 7 32bit. There is written that you only have to make the…
andrew
  • 97
  • 1
  • 10
0
votes
2 answers

Does Ruby have command to format the screen like QBASIC?

QBASIC have some commands, such as LOCATE (x, y) that place the cursor at certain location on the screen, and CLS that clears the screen, which help a console application look clean. Does ruby have the same functionality? It could be nice to use it…
Richard77
  • 20,343
  • 46
  • 150
  • 252
0
votes
1 answer

in c++, changing cursor location without using the windows handle. Qbasic imitation is slow

Sometimes i need to write things on a location of screen (ex: 10th column and 20th row). I searched on the net and found it is done with using windows handler which is using windows.h. Yes, using handles are fast but somewhat complex so i wrote a…
huseyin tugrul buyukisik
  • 11,469
  • 4
  • 45
  • 97
-1
votes
3 answers

Increase conventional RAM in Wndows

I have a program that requires 512KB of conventional RAM but my cmd.exe only reports 500KB. My question is how do I increase RAM to the program. Thanks.
Azathoth
  • 105
  • 1
  • 9
-1
votes
1 answer

How do I use BOF function in QBASIC?

I came to know that there is a BOF function available to use in QBASIC. It is called the Beginning Of File. But, I didn't find any examples over its use. Please help.
Hello World
  • 103
  • 1
  • 2
  • 6
-1
votes
1 answer

How To Get Drive Label And Drive Serial Number In QB64

I have recently found how to Get/Set Filename Attributes in QB64: DECLARE LIBRARY FUNCTION GetFileAttributes& (f$) FUNCTION SetFileAttributes& (f$, BYVAL a&) END DECLARE file$ = "c:\qb64\tempfile.000" + CHR$(0) a =…
eoredson
  • 1,167
  • 2
  • 14
  • 29
-1
votes
4 answers

If else ladder in QBasic

My QBasic code for computing discount is below: CLS INPUT "ENTER BILL AMOUNT";AMT IF AMT <= 6000 THEN DISCOUNT = 0 ELSEIF AMT > 6000 AND AMT <= 15000 THEN DISCOUNT = 0.2 * AMT ELSEIF AMT > 15000 AND AMT <= 50000 THEN DISCOUNT = 0.3 *…
Sunita Bala
  • 11
  • 1
  • 1
-2
votes
1 answer

How to transfer loop from qBasic to JS?

I tried to move code from qBasic to JS but after moving I got incorrect result (infinite loop or incorrect numbers). Can you help me to find where is mistake. I think mistake on loop condition. qBasic INPUT "TA", TA INPUT "fi", fi INPUT "R", R INPUT…
-2
votes
2 answers

IF statements program

I'm having an issue. I have to write a program for my calculator but I'm not sure how to do it. It uses a form of QBASIC language. My statement is: IF (y>0 and x>0) then it should calculate n:=ATAN(y/x); IF (y<0 and x<0) then it should calculate…
Learner4491
  • 7
  • 2
  • 5
-2
votes
3 answers

How to print current Time and Date in Q Basic?

What is the command for displaying the time and date in qbasic? Could the syntax for the commands be given as well? And an explanation if possible?
user9104738
-3
votes
1 answer

Function expected ) on tic tac toe game

iam making a tic tac toe on QBasic but I have a problem with a function and i don't know fix it The error is "Expected ) on current line" but i don't know where put ) FUNCTION HayGanador() as string 'the error is on this line FOR i = 1 TO 3 …
-3
votes
3 answers

How to count frequency of each letter of word in qbasic or c language?

Successfully counted each letter but letter order can't display sequentially as in word. For example- Input word-bbinood Output=b2i1n1o2d1 Here my program in qbasic: INPUT "Enter the string:", A$ n = LEN(A$) FOR i = 97 TO 122 FOR…
Binod Thakur
  • 53
  • 1
  • 6
1 2 3
11
12