Replies: 2 comments 3 replies
-
There's no setting needed to print to the screen. This program is indeed written in GW-BASIC. I tried the program with the given inputs both in PC-BASIC and in GW-BASIC and there is no output. Tracing the execution with TRON shows that with these inputs it doesn't actually reach any of the program lines that try to print anything to the screen - it just performs some calculations and exits. Perhaps it was designed for the user to simply access the calculation results directly afterwards by printing the desired variable - or the program has been modified by someone to do so? E.g. the Your best bet may be to try to find another source for the same program and compare differences. This seems to be a variant of the RATEIEEE program distributed with IEEE 738-1986 which seems to be paywalled - a web search turns up several other variants including
|
Beta Was this translation helpful? Give feedback.
-
(This comment contains information already given by @robhagemans because I didn't came around to actually send it yesterday) When started the code ends in line 5395 at an It's also a bit odd that the code sets When continuing the program after the The program seems to be incomplete or in a state where someone tried to change or extend it, but did not finish that task. The code contains the variable |
Beta Was this translation helpful? Give feedback.
-
Greetings. I'm a rookie at programming, so please bear with my inexperience.
I have a program that I think was written in GW-BASIC, and I want to verify that it works before attempting to translate it to a different language, as part of a research effort. The program is supposed to print to the screen using the PRINT command. It seemingly works, as I get no error messages upon running it and its one INPUT statement works, but nothing prints to the screen except "Ok".
I would like to know if there's some setting I have to toggle that allows printing to the screen while running.
I also have no idea how to get a program to write to a file as well as print to the screen.
The program is attached (zipped, because I guess GitHub doesn't allow for the uploading of .bas files), as is a "working" input file.
738CODE.zip
inputvalue3.txt
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions