AllExperts > Experts 
Search      

Qbasic, Quickbasic

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Qbasic, Quickbasic Answers
Question Library

Ask a question about Qbasic, Quickbasic
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About QBasic Mac
Expertise
QBasic was designed to be run on a DOS operating system. I can answer most any question about programming in general and QBasic and DOS in particular, at a level understandable to the average novice programmer. As QBasic was designed to introduce people to the principals of programming and not designed to be a developer's language, I am unable to answer questions regarding how to write programs to do Windows type functions or advanced graphics. In particular, I answer no questions regarding VISTA as that system does not support QBasic. Sorry you have VISTA!

Experience
I have been writing BASIC programs since the VIC-20 was introduced and QBasic programs as soon as it came out. I have participated on QBasic forums such as the classic forum at www.qbasic.com for years and thus have lots of experience working with people with limited knowledge of QBasic. Samples of my works: A telephone-book type program which is notable because of the way it remembers what the user enters and is difficult to "break" by entering bogus information. A utility program that will scan a QBasic program and find all labels which were not used. A maze you will probably never solve, but you can watch the computer solve it! I know someone who solved one. V'GER, A fascinating game of concentration rather than motor skills. A generalized help SUB. You insert your help information and as a result, you have a help panel with navigable topics. Homework drill: You supply a data file of word-pairs and it asks questions and checks your answer. The "different" part is that if the answer to "What is the capital of the USA"?" is "Washington, D.C." it will accept slight variations like "Washington DC". A program where you enter a,b,c of aX^2 bX c=0 - Get roots The missing ARC SIN and ARC COS functions A Bowling Scorepad. You enter pins knocked down. See scores entered. A House Alarm Simulator. Shows INKEY$ working in main program while ON TIMER is stepping down time until alarm triggers. Demo which shows swapping screens, moving object with arrows, objects moving while awaiting input. A program you can start in two windows and which allows you to send messages back and forth. Well, you get the picture. The list goes on and on.

Organizations
Masons

Education/Credentials
BA Mathematics

Awards and Honors
PBK

 
   

You are here:  Experts > Computing/Technology > Basic > Qbasic, Quickbasic > errors when compiled

Topic: Qbasic, Quickbasic



Expert: QBasic Mac
Date: 3/26/2008
Subject: errors when compiled

Question
I have a quickbasic (4.5) program that does brake calcs. It returns correct results when run in the editor but some results are incorrect when run as a compiled executable. Samples follow...

from QB editor...
0.00E  0.0000-0.0000
0.20E  0.1411-0.1496
0.40E  0.3049-0.3232

from executable...
0.00E  %-1.0I0%-1.0I
0.20E  0.1411-0.1496
0.40E  0.3049-0.3232


Answer
Hi, Greg,

Could you post the exact snippet of code that produced
0.00E  %-1.0I0%-1.0I
so I can try it out.

Might be inconsistency in
PRINT USING
between IDE and compiler.

But in general, the two values are merely differences in how the exact same value is displayed.

This is irritating to human beings, who perceive that when different values are displayed, then there must be different values.

Nope, says the machine, I just chose to display it that way. The values are the exact same.

Mac  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.