Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Visual Basic programming problem

Name: Anonymous 2011-03-12 7:33

Hello all;

I've been coding a small program for visual basic (Yes it's not a great language but I figured I'd at least give it a try), and I've stumbled upon a small problem.

Code: http://pastebin.com/rqeKiE76

Now, the code works fine until section 6 where the outputs stop showing and the program closes itself. I'm sure I've missed something obvious and so I'm asking you, any help would be apprecaited.

Name: Anonymous 2011-03-12 7:38

why VB, just why..

Name: Anonymous 2011-03-12 7:40

Got a book on it for Christmas, decided I would at least try to do some programs with it. It's gone well up until this point.

Name: Anonymous 2011-03-12 8:38

I found the problem:  You're using VB.

Name: Anonymous 2011-03-12 9:29

Everyone complains about the use of VB because they have been brainwashed by freetards.

Name: Anonymous 2011-03-12 10:06

>>5
I complain about VB because I've used it.

Name: Anonymous 2011-03-12 10:19

>>6
I complain about VB because it's for noobs.

Name: Anonymous 2011-03-12 11:11

>>7
Complaining about VB is for noobs.

Name: Anonymous 2011-03-12 13:38

VB is a terrible language and just looking at it makes me want to die.

Name: Anonymous 2011-03-12 14:02

>>9
VB is a terrible language and just looking at it makes me want to die.
Dim Number As Integer
Number = InputBox("Please enter your age")
If (Number > 50) Then
   MsgBox "you are older than 50"
ElseIf (Number < 20) Then
   MsgBox "you are younger than 20"
Else
   MsgBox "your age is between 20 and 50"
End If

Please go die.

Name: Anonymous 2011-03-12 14:09

10 PRINT "HAVE YOU READ YOURDIJKSTRA TODAY?"
20 GOTO 10

Name: Anonymous 2011-03-12 14:36

>>9
You are a terrible person and just looking at you makes me want to kill you.

Name: Anonymous 2011-03-12 15:16

Who started letting the /g/tards in?

Name: Anonymous 2011-03-12 15:21

>>11
Spectacular job

Name: Anonymous 2011-03-12 16:15

>>11
I don't know how many of you have ever met Dijkstra, but you probably know that arrogance in computer science is measured in nano-Dijkstras.
-- Alan Kay on arrogance.

Name: Anonymous 2011-03-12 16:19

>>15
So Alan Kay's arrogance is what, around five Dijkstras?

Name: Anonymous 2011-03-12 16:37

This thread has been closed and replaced with the following one; implement >>10 in language of your choice.



number=input('please enter your age')
if number > 50:
    print 'you are older than 50'
elif number <20:
    print 'you are younger than 20'
elif number<50 and number >20:
    print 'your age is between 20 and 50'
else print

Name: Anonymous 2011-03-12 17:01

>>17
if
elif
elif
else

Name: Anonymous 2011-03-12 17:31

putStrLn "please enter your age" >> readLn >>= \x -> (putStrLn $ ["you are younger than 20", "your age is between 20 and 50", "you are older than 50"] !! (length $ takeWhile (<x) [20,50]))

fuqin hipsters

Name: Anonymous 2011-03-12 17:38

>>19
That's not pointless.

Name: Anonymous 2011-03-12 19:17


10 INPUT "PLEASE ENTER YOUR AGE"; N
20 IF N > 50 GOTO 60
30 IF N < 20 GOTO 80
40 PRINT "YOUR AGE IS BETWEEN 20 AND 50"
50 GOTO 90
60 PRINT "YOU ARE OLDER THAN 50"
70 GOTO 90
80 PRINT "YOU ARE YOUNGER THAN 20"
90 END
RUN

Name: Anonymous 2011-03-12 19:46

>>20
anus x = putStrLn $ (!!) ["you are younger than 20", "your age is between 20 and 50", "you are older than 50"] $ length $ flip takeWhile [20,50] (<x) is as far as I can go.

Name: Anonymous 2011-03-12 20:08

>>1
Visual Basic
OKAY YOU JUST FUQIN ANGERED AN EXPERT PROGRAMMER

Name: Anonymous 2011-03-12 20:58

>>23
Back to prog, please.

Name: Anonymous 2011-03-12 21:05

>>24
Back to /prauge/, please.

Name: Anonymous 2011-03-13 4:37

NIGGER?

NIGGER!!

Don't change these.
Name: Email:
Entire Thread Thread List