IF UCASE$(answer$) = "GOOD" THEN
PRINT "thats good"
ELSE
IF UCASE$(answer$) = "BAD" THEN
PRINT "why?"
ELSE
PRINT "what the hell?"
END IF
END IF
PRINT "what are you doing today?"
IF UCASE$(answer$) = "listening to music" THEN
PRINT "cool, what type of music are you into"
IF UCASE$(answer$) = "electronic" THEN
PRINT "no way!!!! me too!"
PRINT
PRINT "hmmm, which artists do you like?"
IF UCASE$(answer$) = "sonic animation"
or "prodigy"
or "the prodigy"
or "hybrid"
or "moby"
or "crystal method"
or "chemical brothers" THEN
PRINT "yep! good stuff"
PRINT
PRINT "so whats your favourite choon?"
IF UCASE$(answer$) = "music response"
==========================================================
Aug-18-2004 02:22
Boomer187
Spicy Hotdog
Registered: Aug 2001
Location: USA
stop learning this and learn php...
then I can help you
Aug-18-2004 02:39
TweeK
What About The Future
Registered: Apr 2004
Location: Underground Pirate Station [JSRF]
I was taking C++ classes in high school but i sucked and quit.
___________________
Aug-18-2004 02:44
D-res
Hangin from Sagan's uvula
Registered: May 2004
Location: Milwaukee, WI
NERD!!!
im just joking. i am one myself. i dont know basic. i know calculator programming and im a flash master...sometimes
I pretty much make my living by looking at code (.NET mostly) I don't like it but it's good to know and if you really good you can pretty much write your own ticket. I work with people who take home over 120k and those guys not ever 30.
___________________
Yeah…you like to get cookie…a lot…you like the cookie when its late at night….you like the way the cookie tastes, you like the way the cookie smells….you like how the cookie makes you feel…can I have a bite of your cookie – COOKIE DOUGH DYNAMO!
MOSCHINO LOVES YOU...
Aug-18-2004 03:01
itsTrueSonic
NullPointerException
Registered: Aug 2003
Location:
Re: Just Starting Programming
quote:
Originally posted by meneedit
thats right i'm just starting programming in quick basic.
lol! so very old...
IF UCASE$(answer$) = "GOOD" THEN
PRINT "thats good"
ELSE
IF UCASE$(answer$) = "BAD" THEN
PRINT "why?"
ELSE
PRINT "what the hell?"
END IF
END IF
PRINT "what are you doing today?"
IF UCASE$(answer$) = "listening to music" THEN
PRINT "cool, what type of music are you into"
IF UCASE$(answer$) = "electronic" THEN
PRINT "no way!!!! me too!"
PRINT
PRINT "hmmm, which artists do you like?"
IF UCASE$(answer$) = "sonic animation"
or "prodigy"
or "the prodigy"
or "hybrid"
or "moby"
or "crystal method"
or "chemical brothers" THEN
PRINT "yep! good stuff"
PRINT
PRINT "so whats your favourite choon?"
IF UCASE$(answer$) = "music response"
==========================================================
-for one thing, your long IF statement at the end, there is no END IF clause ender to tell the parser where the END IF is ending. I don't know about QBasic, but in regular VB, you can set a one-line if statement without setting an "end if" clause by typing "then:" rather than "then".
-this line :
PRINT "what are you doing today?"
you did not have a input() statement set to wait for user input.
you can replace the input with PRINT like this :
INPUT "what are you doing today", $answer
-close this IF STATMENT CLAUSE :
IF UCASE$(answer$) = "electronic" THEN
that way, you can exclude the other statements you want.
- you could be getting improper output that you did not want.
Aug-18-2004 04:09
ShadoWolf
ISOS
Registered: Apr 2002
Location: State of Trance
Turing ownz u all
___________________
Nathan Fake - Outhouse (Valentino Kanzyani Remix) || ID PLZ!PVD ID!!!
Disco and classical had sex while watching a sci-fi movie. Their child: trance.
Aug-18-2004 04:11
Mike Vicious
HIM
Registered: Aug 2004
Location: insomnia [dc]
Don't waste your time with QBasic, Learn C and C++ if anything..
___________________
sig edited: sig exceeds size limits. please resize
Aug-18-2004 04:13
itsTrueSonic
NullPointerException
Registered: Aug 2003
Location:
quote:
Originally posted by meneedit
1. "doh!"
2. "doh!"
3. "doh!"
oh well it was worth a shot.
its too old isnt it
yes this is old .. actually, c++ was invented before qbasic, if anyone wants to know that.. hahahhaha .. why doesn't anyone want to talk about that, huh???
even though qbasic is very primitive in a structural programmer's way, it is a very good language to start off with if one has no computer language skills. one can consider it the pebble to start on before getting on the big rock.
by the ways, the structure of qbasic is the same as php, even though php uses c++ language.
Aug-18-2004 04:15
Matt Jay
Supreme tranceaddict
Registered: Sep 2003
Location: Brisbane, Australia
I'm scared of programming ever since I did a course on Java, i'm gonna stick to networking & hardware
Aug-18-2004 04:18
itsTrueSonic
NullPointerException
Registered: Aug 2003
Location:
quote:
Originally posted by Mike Vicious
Don't waste your time with QBasic, Learn C and C++ if anything..
i think java would suit better for the guy.
java is easier to understand, rather than c/c++, and the fundamentals of programming is easier to implement into java than c.c++. c is a great language to use, for his type, java is better.