Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Just Starting Programming
Pages (3): « 1 2 [3]   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
Dr. Cfire
Supreme tranceaddict



Registered: Apr 2003
Location: Calgary
Re: Just Starting Programming

You didnt reinput the answer variable after some of the questions.

I also do not remeber if you can redefine strings like this in Qbasic so if this does not work you need to change each answer into a diffrent vairable.


==========================================================
CLS

PRINT "How are You?"
INPUT answer$

IF LCASE$(answer$) = "good" THEN
PRINT "thats good"
ELSE
IF LCASE$(answer$) = "bad" THEN
PRINT "why?"
ELSE
PRINT "what the hell?"
END IF
END IF

PRINT "what are you doing today?"
INPUT answer$
IF LCASE$(answer2$) = "listening to music" THEN
PRINT "cool, what type of music are you into"
END IF
INPUT answer$
IF LCASE$(answer2$) = "electronic" THEN
PRINT "no way!!!! me too!"
END IF
PRINT "hmmm, which artists do you like?"
INPUT answer$
IF LCASE$(answer$) = "sonic animation"
or "prodigy"
or "the prodigy"
or "hybrid"
or "moby"
or "crystal method"
or "chemical brothers" THEN
PRINT "yep! good stuff"
END IF
PRINT "so whats your favourite choon?"
INPUT answer$
IF LCASE$(answer$) = "music response"

==========================================================

also you want to change the UCASE$ to LCASE$ since you are using lower case strings to compair too.

example:
answer$ = "foo"

UCASE$(answer$) will return FOO

answer$ = "$BAR"

LCASE($answer$) will return bar

you also did not end most of your IF statments.

Old Post Aug-19-2004 00:30  Canada
Click Here to See the Profile for Dr. Cfire Click here to Send Dr. Cfire a Private Message Add Dr. Cfire to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Just Starting Programming
Post New Thread    Post A Reply

Pages (3): « 1 2 [3]  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackTrack 32 from Paul van Dyk Live @ U60311, Frankfurt (13-May-05) [2005] [7]

Click here to listen to the sample!Pause playbackOGP - "Pathfinder" [2008]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 09:29.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!