Good analogy Jason.
Best Regards,
Hawyden
-Original Message-
From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On
Behalf Of Jayson Smith
Sent: Wednesday, March 24, 2010 2:31 PM
To: Gamers Discussion list
Subject: Re: [Audyssey] Bgt stuff that confuses me
Okay, I
Okay, I'll explain about functions, return values, etc.
Let's take an example function that adds two numbers. This would be
like you meeting some guy, and saying, "From time to time I may call on you.
When I do, I'll give you two numbers. I want you to add them together, and
then give me t
Hi,
I don't know where you got that idea. No, I didn't say that. My point
to Dark was that you can't call a function that hasn't been defined in
your script somewhere.
If you recall Dark said he didn't understand why he was writing an
add_numbers(() function when in the body of main he had already
Hi Thom,
So you're saying, then, that main has to be at the bottom of the program?
Thomas Ward wrote:
Hi Dark,
Smile. Welcome to the wonderful world of resource management. Don't
feel too bad as this is an issue that comes up all the time with new
programmers, because they often think as you d
From: "Thomas Ward"
To: "Gamers Discussion list"
Sent: Thursday, March 25, 2010 4:36 AM
Subject: Re: [Audyssey] Bgt stuff that confuses me
Hi Dark,
Smile. Welcome to the wonderful world of resource management. Don't
feel too bad as this is an issue that comes u
rs Discussion list"
Sent: Thursday, March 25, 2010 4:36 AM
Subject: Re: [Audyssey] Bgt stuff that confuses me
Hi Dark,
Smile. Welcome to the wonderful world of resource management. Don't
feel too bad as this is an issue that comes up all the time with new
programmers, because they often th
Hi Dark,
Smile. Welcome to the wonderful world of resource management. Don't
feel too bad as this is an issue that comes up all the time with new
programmers, because they often think as you do that a number is just
a number and don't understand the difference between int, float, long,
short, doubl
Hi,
Actually, return statements are alloud in functions that return void.
The only different is you don't return an actual value. The way you do
this is like this.
void main ()
{
return;
}
Since I didn't pass a value or variable to the return statement it
defaults to void.About the only time
Hi Dark,
I think the concept you are missing here is called scope. Variables
can be declared in the local scope or the global scope. There are
important differences and uses of each of these types of variables.
Global variables are generally declared at the top of your
program/script and are visabl
Number/variable types relate to resource efficiency etc.
As in why store a number that'll never go higher than 32768 - limit for
something like an Int16/short - in a variable of a much larger type, like
Int64?
Same principle as in why would you store a piece of paper in a full on
rucksack i
Discussion list
Subject: Re: [Audyssey] Bgt stuff that confuses me
My friend with the msc in computer science said his favourite book on games
programming had a first chapter entitled "games programming is hard!" and a
scond chapter ientitled "games programming is bloody hard!&qu
;
Sent: Wednesday, March 24, 2010 8:15 PM
Subject: Re: [Audyssey] Bgt stuff that confuses me
I'm more than mildly confused about all that Dark. That could be where I'm
having trouble with my current project. All I can say is I'm glad I never
went in expecting this to be completely
I'm more than mildly confused about all that Dark. That could be where I'm
having trouble with my current project. All I can say is I'm glad I never
went in expecting this to be completely easy, otherwise I'd have been in for
a nasty shock. I still have every intention of buying the Light and
e
efall
- Original Message -
From: "Oriol Gómez"
To: "Gamers Discussion list"
Sent: Wednesday, March 24, 2010 8:01 PM
Subject: Re: [Audyssey] Bgt stuff that confuses me
I'm going to try to answer your questions:
1. Void fucntions are functions that don't return
gt; Beware the grue!
>
> Dark.
> - Original Message -
> From: "Oriol Gómez"
> To: "Gamers Discussion list"
> Sent: Wednesday, March 24, 2010 7:01 PM
> Subject: Re: [Audyssey] Bgt stuff that confuses me
>
>
>> I'm going to try to answe
s Discussion list"
Sent: Wednesday, March 24, 2010 7:01 PM
Subject: Re: [Audyssey] Bgt stuff that confuses me
I'm going to try to answer your questions:
1. Void fucntions are functions that don't return anythin gI.e: No
return statements allowed.
2. "3+5" in between quote
I'm going to try to answer your questions:
1. Void fucntions are functions that don't return anythin gI.e: No
return statements allowed.
2. "3+5" in between quotes is going to be printed as such.
Example:
if you say alert("3+5=8"); it's going to print exactly that. if you
said something like.
aler
17 matches
Mail list logo