Search found 19 matches

by dchapman
Apr 17, 2010 20:06
Forum: General
Topic: How did you start learning?
Replies: 21
Views: 4038

BasicCoder2

Wow, that's neat. Haven't looked through the code just yet, just ran it, but thanks this might be a great starting point for me.

~David
by dchapman
Apr 14, 2010 6:38
Forum: General
Topic: How did you start learning?
Replies: 21
Views: 4038

Re: How did you start learning?

Thanks for stopping by the thread guys, I appreciate it. From your second last thread I see you are interested in programming some kind of game? What have you done so far? JohnC Yes, the impetus for me wanting to learn programming is to program a game. Specifically, the end goal is to recreate (as b...
by dchapman
Apr 12, 2010 20:01
Forum: General
Topic: How did you start learning?
Replies: 21
Views: 4038

How did you start learning?

Hey folks, So, I've been posting some fairly specific questions in the Beginner section, but it occurred to me that asking this in the General section might be a good idea, in case some of you don't read the Beginner posts. When you started learning to program, how did you go about it? Did you... Sy...
by dchapman
Apr 11, 2010 16:35
Forum: Beginners
Topic: Questions about Files
Replies: 12
Views: 1331

Thanks for the detailed information. It looks like file i/o is indeed a lot more complicated than I thought it would be. So, I'll take the advice given and try to use functions, subs, and arrays to hardcode as much as I can. However, I'll have to put in some practice time with file i/o, because even...
by dchapman
Apr 11, 2010 0:37
Forum: Beginners
Topic: Questions about Files
Replies: 12
Views: 1331

Thanks guys, I had to look up a few commands and learned a bit more. Also, didn't know you could code functions before the main program, all the tutorials I've read had functions and subs at the end of the code. Cool beans. So, questions (remember, brand new to programming as well as FB) For some re...
by dchapman
Apr 09, 2010 23:49
Forum: Beginners
Topic: Questions about Files
Replies: 12
Views: 1331

Questions about Files

So far I understand using OPEN, CLOSE. I'm not so solid on the types of files (binary random) But here's what I'd like to accomplish: Have a line of data like this Weapon Dmg Speed ToHit Weight Integrity Edge Sword 1-8 4 1 2 10 10 And realistically I'm going to have a bunch of data lines like that f...
by dchapman
Apr 09, 2010 23:33
Forum: Beginners
Topic: QB versus FB
Replies: 5
Views: 814

Okie doke.

Thanks guys!

~David
by dchapman
Apr 09, 2010 3:47
Forum: Beginners
Topic: QB versus FB
Replies: 5
Views: 814

QB versus FB

So I'm willing to bet that this has been brought up before, so if this has been done to death already, please--link me to the best thread covering it. But here's the deal: I'm new to programming, and new to quickbasic and freebasic. Up until now I've been using the -lang qb feature in FB because the...
by dchapman
Apr 09, 2010 3:41
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

Yep. That fixed it. Except it wouldn't work at first, until I realized I had to use INKEY$ while in (-lang qb) mode. So that brings me to another question, that I'll start a new thread with.
by dchapman
Apr 08, 2010 23:10
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

All right. Learned a lot in this thread! Combining what I learned, here's what I came up with. But, I'm having an error. For some reason, the DISPTOTAL section doesn't work. The program exits after the last run of the main loop. I've looked over it again and again. I snipped the code out and saved i...
by dchapman
Apr 08, 2010 20:26
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

Wow. Thanks a million guys, you've really done a great job providing example code and explanations. I'm still looking everything over and trying to understand the concepts. Couple of questions: anonymous1337 there were two lines in your code that really threw me. a += foo(i) Print "The ...
by dchapman
Apr 08, 2010 8:00
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

Good job on finding that mistake. Seems to work now.

However, square's code is a lot cleaner and I'm going to learn more about arrays so I can attempt something similar.
by dchapman
Apr 08, 2010 6:58
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

Well, here's what I came up with using <= chooseinput: cls print input "Choose input method: (r)andom or (p)reset? ", chip$ select case lcase$(chip$) case "r" goto gennum case "p" goto usernum End Select gennum: randomize timer num1% = int(rn...
by dchapman
Apr 08, 2010 2:56
Forum: Beginners
Topic: Find lowest value in a set of variables
Replies: 15
Views: 1767

Find lowest value in a set of variables

[using -lang qb] Let's say I have four variables, and assigned each one a random integer value. Var1% Var2% Var3% Var4% I want to find the lowest value, discard that variable, and sum the remaining three. Then, make a new variable (Total1%) with value set to the sum. I came up with a basic IF statem...
by dchapman
Apr 03, 2010 19:52
Forum: Beginners
Topic: Program Structure (or layout)
Replies: 7
Views: 994

Hey Vince, good to meet ya. Getting to know FreeBASICs OOP (Object Oriented Programming) features will pretty much satisfy the majority of your list there. Where you create an object you will... Ya, I'm going to hold off on learning about object oriented stuff for now--I'm having enough of a challen...

Go to advanced search