Page 1 of 1

So, I wrote a program today...

Posted: Thu Sep 23, 2010 6:53 pm
by Lotus Wolf
I'm taking programming with Visual Basic in college now, so I've been playing with it a lot. Today, I was bored and had all day to play with code so I tried making a little number game. Anyway, thought I'd share it, as I always do. - Windows only though :( ...actually it might run in wine or crossover, after all it's only a console program. If anyone's interested at looking in the code for whatever reason, I'll upload that too.

Re: So, I wrote a program today...

Posted: Thu Sep 23, 2010 6:59 pm
by Ragdollmaster
Haha, cool. Coincidentally, I started taking a programming class this year. We're starting off with Quick BASIC, though, not Visual :lol: I suppose it makes a difference between taking it in high school or college.

Re: So, I wrote a program today...

Posted: Thu Sep 23, 2010 9:24 pm
by Lotus Wolf
Funny, several of the examples I looked at today were actually in qbasic, but it was easy to translate to visual, they're pretty similar.

Re: So, I wrote a program today...

Posted: Fri Sep 24, 2010 3:00 am
by Freshbite
So... the correct number seems to be the Max value / 2, then you round up. Correct?

A great thing to start with is to create a Calculator. I know we did. Image
With the choice of using Addition, Subtraction, Multiplication or Division, you get quite a bunch of IF statements. I recommend you to try that out, if you haven't already.

Re: So, I wrote a program today...

Posted: Fri Sep 24, 2010 4:08 am
by nutcracker
Visual basic is really mega easy, I can do it pretty well myself :D
I had classes in junior high

Re: So, I wrote a program today...

Posted: Fri Sep 24, 2010 10:15 am
by Lotus Wolf
I have made a calculator, yes. Basic is pretty simple, once you look at a few examples it's pretty clear how things are done, and since I have a college-level textbook at my disposal, it's a breeze.

Edit: Oh yeah, Freshbite's got the right equation. Pretty nifty. :P

Re: So, I wrote a program today...

Posted: Fri Sep 24, 2010 4:27 pm
by Sandurz
VB is a really great starting program, I must say. Are you doing .Net?

Re: So, I wrote a program today...

Posted: Fri Sep 24, 2010 7:19 pm
by Freshbite
Wait... Visual Basic is the programming language, right?

Re: So, I wrote a program today...

Posted: Sat Sep 25, 2010 6:23 am
by Precastwig
nice,
Switched to bootcamp just for this ^_^

Re: So, I wrote a program today...

Posted: Sat Sep 25, 2010 6:36 am
by Ragdollmaster
Set up a basic site with xlphp and made a rotating avatar :) Can't use it here on Wolfire, since you have to upload avatars from your computer and aren't allowed to link to off-site ones, but it's working fine on Datarealms.

Manual link; http://ragdollmaster.xlphp.net/rotation ... avatar.png

Basically, it changes whenever you refresh. 6 images in total- used to be 13, but I found that the same 6 or 7 kept popping up, so I figured I should cut down on the candidates.

Re: So, I wrote a program today...

Posted: Sat Sep 25, 2010 7:36 am
by Freshbite
Oh yeah, so that's why your User Avatar is broken.

Re: So, I wrote a program today...

Posted: Sat Sep 25, 2010 8:56 am
by Ragdollmaster
It's been broken for a while for some reason. I dunno why. I just made that program today, though :P

Re: So, I wrote a program today...

Posted: Sun Sep 26, 2010 2:03 pm
by Freshbite
Have you considered fixing it? Image

Re: So, I wrote a program today...

Posted: Wed Sep 29, 2010 11:47 am
by Lotus Wolf
*interrogation time*
It's an introduction to programming course which utilizes Visual Basic 2008 Express supplied by Microsoft to students who have an email address ending in .edu, which my college has provided for me. Yes, I do plan to move on to other languages, perhaps as soon as next semester.