Quick Basic

Get help on programming - C++, Java, Delphi, etc.
Post Reply
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Quick Basic

Post by KatrynKat »

Do not laugh!

I have this model that I will be using for my project... It was written in VBasic, I think, but it says that it is a Quick Basic program. This model was written in 1989 (I kid you not) and is over 1000 lines long (printing it takes 20 pages).
So, I need help in trying to first understand this language and secondly to rewrite the model into a language that I understand, namely FORTRAN.

Any help would be appreciated be it on the programming language itself or on getting a program that will compile and run this model as it stands just so that I can see how the output looks.

This is for my masters, albeit I don't need to use the model now as the research proposal must be handed in first, but this project will be spanning over the next 2 years.

Thanks in advanced...
KK
:D
"This eBook is displayed using 100% recycled electrons."
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: Quick Basic

Post by Tribble »

It would help to see a bit of the code in question. Been a while since I did QBasic .....
Image
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Quick Basic

Post by RuadRauFlessa »

Tribble.... Google Quick Basic :P

it is not QBasic
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: Quick Basic

Post by Tribble »

I know that but they were both Dos based basic languages - yes there are differences
While QBASIC is shareware, QuickBasic is commercial software. Compared to QuickBasic, QBASIC is limited as it lacks a few functions. QBASIC can only handle programs of a limited size, it lacks support for separate QuickLibrary modules other than the standard QB.QLB, and it is a program interpreter only. (It can execute raw source code, but it cannot be used to produce executable files directly.)
If it helps - I played with Quick Basic too - just not as much.

Not that I can help her either - I am just curious as to what the code does. That much I could work out. I know nothing about Fortran though - other than it exists.
Image
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

If I weren't insane: I couldn't be so brilliant! - The Joker
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Quick Basic

Post by RuadRauFlessa »

Depending on what the model does we might try handing KK a C# manual or two :twisted:

If she is very lucky we will ask her to redo the model in Malbolge
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Re: Quick Basic

Post by KatrynKat »

as soon as i get the model electronically i will post a piece of it...

@RRF: the model calculates the dry matter production of grass...
and no way am i learning that language...
i will rewrite the model in Fortran and C#... but that's it!
"This eBook is displayed using 100% recycled electrons."
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

KatrynKat wrote: i will rewrite the model in Fortran and C#... but that's it!
I was going to ask why you don't rewrite it in a modern language. Matlab?
If I weren't insane: I couldn't be so brilliant! - The Joker
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Re: Quick Basic

Post by KatrynKat »

when trying to run it, it brings up an error that the version of windows or whatever doesn't agree with it...

but thanks anyway...

i don't know Matlab...
and would prefer to work with a language that i have a basic knowledge of, not a new language...
"This eBook is displayed using 100% recycled electrons."
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Quick Basic

Post by RuadRauFlessa »

KK you might want to start reading....
http://www.csharp-station.com/Tutorial.aspx
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

KatrynKat wrote:
when trying to run it, it brings up an error that the version of windows or whatever doesn't agree with it...

but thanks anyway...

i don't know Matlab...
and would prefer to work with a language that i have a basic knowledge of, not a new language...
Run it in dosbox.
If I weren't insane: I couldn't be so brilliant! - The Joker
User avatar
Ron2K
Forum Technical Administrator
Posts: 9050
Joined: 04 Jul 2006, 16:45
Location: Upper Hutt, New Zealand
Contact:

Re: Quick Basic

Post by Ron2K »

KatrynKat wrote:i don't know Matlab...
and would prefer to work with a language that i have a basic knowledge of, not a new language...
What's wrong with learning a new language? To quote a friend of mine: "A programmer with only one language at his disposal is like a builder with only one tool. You need both a hammer and a screwdriver to do most things worth doing."
Kia kaha, Kia māia, Kia manawanui.
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

Ron2K wrote:To quote a friend of mine: "A programmer with only one language at his disposal is like a builder with only one tool. You need both a hammer and a screwdriver to do most things worth doing."
As I told KK in a PM, a language like Matlab is perfect for the job. It's multiplatform and easy to understand. It's a simple script instead of an application. Fortran or BASIC is outdated and C# is overkill and restricts her application to Windows and .NET.

You have 2 years to do it; you said you'd be taking a course in Matlab sometime, so why not?
If I weren't insane: I couldn't be so brilliant! - The Joker
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Quick Basic

Post by RuadRauFlessa »

Ron2K wrote:
KatrynKat wrote:i don't know Matlab...
and would prefer to work with a language that i have a basic knowledge of, not a new language...
What's wrong with learning a new language? To quote a friend of mine: "A programmer with only one language at his disposal is like a builder with only one tool. You need both a hammer and a screwdriver to do most things worth doing."
But C/C++ is both the hammer and a screwdriver all rolled into one...
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

KatrynKat wrote: Any help would be appreciated be it on the programming language itself or on getting a program that will compile and run this model as it stands just so that I can see how the output looks.
Also try these:
http://www.qbcafe.net/en/qbasic-downloa ... mpiler.htm
If I weren't insane: I couldn't be so brilliant! - The Joker
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Re: Quick Basic

Post by KatrynKat »

err.... dosbox? :)
Ron2K wrote:What's wrong with learning a new language?
i'm not a programmer...
it's not my livelihood...
so, me knowing Fortran, C# and VB means that i can get into so many overseas jobs... and that's it.

@Blade: you might think that Fortran is outdated, but it is the language of many many atmospheric scientists all over the world... me knowing it means that i have a better chance at getting a job... the big companies look for people with the skills in Fortran and C# or VB...
so leave Fortran...

i will learn Matlab when the time comes, but not now...
for now i have to try to understand this model in order to be able to rewrite into a language that i understand...
"This eBook is displayed using 100% recycled electrons."
Bladerunner
Registered User
Posts: 14338
Joined: 04 Sep 2004, 02:00
Processor: i386DX Sooper
Motherboard: A blue one
Graphics card: A red one
Memory: Hard drive
Location: On a Möbius strip
Contact:

Re: Quick Basic

Post by Bladerunner »

KatrynKat wrote: @Blade: you might think that Fortran is outdated, but it is the language of many many atmospheric scientists all over the world...
Fortran is fairly dated. Its persistent use in a few disciplines, one of which happens to be yours, does not mean it is the right tool for THIS specific job.
If I weren't insane: I couldn't be so brilliant! - The Joker
RuadRauFlessa
Registered User
Posts: 20576
Joined: 19 Sep 2003, 02:00
Location: Bloodbank

Re: Quick Basic

Post by RuadRauFlessa »

Bladerunner wrote:
KatrynKat wrote: @Blade: you might think that Fortran is outdated, but it is the language of many many atmospheric scientists all over the world...
Fortran is fairly dated. Its persistent use in a few disciplines, one of which happens to be yours, does not mean it is the right tool for THIS specific job.
If it helps you get a job it is the right tool for the job :P

Also they develop in very specific environments and they don't have needs of cross platform capabilities.
:rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock: :rock:
Spoiler (show)
Intel Core i7-2600k @ 3.4GHz
Corsair Vengence 2x4GB DDR3 2000MHz
Thermaltake Toughpower 850W
ASUS nVidia GTX560 1GB
CoolerMaster HAF 932
Cyrax
Registered User
Posts: 28
Joined: 16 Aug 2012, 08:11
Location: Death Star
Contact:

Re: Quick Basic

Post by Cyrax »

Image
Spoiler (show)
AMD Phenom 2 X6 T1100 @ 3.8Ghz "pelter cooled"
16GB 1800 kingston ram
Asus board "forgot chipset"
AMD 6890 2GB
Geforce 9800GT 512MB "physix re-enabled"
2x 80GB SDD in raid "for speed"
1.2KW PSU
Post Reply