Qbasicnews.com

QbasicNews.Com => Challenges => Topic started by: tannervp on December 22, 2005, 01:08:54 AM



Title: New QBasic/FB Challenge
Post by: tannervp on December 22, 2005, 01:08:54 AM
Create a program that teaches:

QBasic with QBasic
FB with FB


EDIT: Must have user-interaction.
I'll give you... 5 days


P.S. My computer hates my programming programs... please make it an exe file.


~tannervp


Title: New QBasic/FB Challenge
Post by: stylin on December 22, 2005, 02:40:42 AM
Or just write a tutorial. What's the challenge?


Title: New QBasic/FB Challenge
Post by: Sterling Christensen on December 22, 2005, 03:37:36 PM
You mean with the same BAS file?

Here's a start:
Code:
a = 1.3
IF a = 1 THEN
   ' a is an integer, this is FB
   PRINT "Welcome to the FreeBASIC tutorial"
ELSE
   ' a is a single, this is QB
   PRINT "Welcome to the QuickBASIC tutorial"
ENDIF
Like that?


Title: New QBasic/FB Challenge
Post by: TheDarkJay on December 22, 2005, 04:13:39 PM
I think he means more like

Code:
PRINT "The print command displays the text entered on the screen. So PRINT "Hello World" will do this:"

PRINT "Hello World"