qbasic

Is there a special formula for permutation

有些话、适合烂在心里 提交于 2020-07-23 09:26:46
问题 Who can help me out with a QBASIC CODE to find the permutation of a given number. I'd really appreciate. I've tried writing some codes but it's not giving the required answer. 回答1: If by permutation you mean the factorial then the following is the code that you need. It will get an integer and compute its factorial. DECLARE FUNCTION Factorial (n) FUNCTION Factorial (n) IF n = 0 THEN Factorial = 1 ELSE Factorial = n * Factorial(n - 1) END IF END FUNCTION INPUT "PLEASE ENTER AN INTEGER", n

Is there a special formula for permutation

淺唱寂寞╮ 提交于 2020-07-23 09:24:08
问题 Who can help me out with a QBASIC CODE to find the permutation of a given number. I'd really appreciate. I've tried writing some codes but it's not giving the required answer. 回答1: If by permutation you mean the factorial then the following is the code that you need. It will get an integer and compute its factorial. DECLARE FUNCTION Factorial (n) FUNCTION Factorial (n) IF n = 0 THEN Factorial = 1 ELSE Factorial = n * Factorial(n - 1) END IF END FUNCTION INPUT "PLEASE ENTER AN INTEGER", n

Is there a special formula for permutation

前提是你 提交于 2020-07-23 09:23:25
问题 Who can help me out with a QBASIC CODE to find the permutation of a given number. I'd really appreciate. I've tried writing some codes but it's not giving the required answer. 回答1: If by permutation you mean the factorial then the following is the code that you need. It will get an integer and compute its factorial. DECLARE FUNCTION Factorial (n) FUNCTION Factorial (n) IF n = 0 THEN Factorial = 1 ELSE Factorial = n * Factorial(n - 1) END IF END FUNCTION INPUT "PLEASE ENTER AN INTEGER", n

What are the advantages of using Virtual Machine compilation (eg. JVM) over natively compiled languages?

对着背影说爱祢 提交于 2020-05-07 10:34:11
问题 I've heard that the advantage of java is that people can write code, compile it for the JVM, and run it anywhere. Each person just needs a JVM app for their platform. Of course, it looks similar to the current situation, where everybody has a compiler specific for their platform. So the advantage isn't explained by that. But I think I see the explanation.. the issue must be that in the java situation, you can't or weren't meant to access the real machine directly in an OS specific way. I

free basic compiler error 23: File not found, libsupc++.a

独自空忆成欢 提交于 2020-01-17 13:05:23
问题 I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get Also I posted it on askubuntu.com https://askubuntu.com/questions/226084/free-basic-compiler-error-23-file-not-found-libsupc-a#comment279100_226084 but reported to post here. Here is my simple QBASIC program and compilation details. print "hello word" I compiled it with fbc hello.bas But I got the following error. hello.bas() error

free basic compiler error 23: File not found, libsupc++.a

拥有回忆 提交于 2020-01-17 13:03:05
问题 I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get Also I posted it on askubuntu.com https://askubuntu.com/questions/226084/free-basic-compiler-error-23-file-not-found-libsupc-a#comment279100_226084 but reported to post here. Here is my simple QBASIC program and compilation details. print "hello word" I compiled it with fbc hello.bas But I got the following error. hello.bas() error

free basic compiler error 23: File not found, libsupc++.a

梦想的初衷 提交于 2020-01-17 13:02:35
问题 I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get Also I posted it on askubuntu.com https://askubuntu.com/questions/226084/free-basic-compiler-error-23-file-not-found-libsupc-a#comment279100_226084 but reported to post here. Here is my simple QBASIC program and compilation details. print "hello word" I compiled it with fbc hello.bas But I got the following error. hello.bas() error

QuickBasic 4.5 Gravis Ultrasound Library

社会主义新天地 提交于 2019-12-24 06:45:36
问题 I am currently working on a small project in QuickBasic that requires the use of MIDI files. As the DOS environment I'm using DOSBox 0.74, which provides emulation of the Gravis Ultrasound card. So far, I've been able to access GUS only by using the PLAYMIDI.EXE file in the C:\ULTRASND directory. However, it is impossible to launch it from inside QuickBasic: the SHELL statement creates a child COMMAND.COM process, so when PLAYMIDI.EXE starts playing in the background the child process

Converting Quick BASIC to VB.Net - Random Access Files

我是研究僧i 提交于 2019-12-22 09:31:05
问题 I'm trying to convert an old Quick BASIC program to VB.Net. There doesn't appear to be any direct replacement for the old file statements. Building a database seems like overkill for my simple needs. How can I do the following in VB.Net? OPEN "test.dat" FOR RANDOM AS #1 LEN = 20 FIELD #1, 10 AS a$, 10 AS b$ LSET a$ = "One" LSET b$ = "Two" PUT #1, 1 GET #1, 1 PRINT a$, b$ CLOSE #1 回答1: The Microsoft.VisualBasic.FileOpen, FilePut, and FileGet statements should be pretty direct replacements for