Even shorter: Use -> for pointers (i.e. dynamic memory), and . for arrays and such (static memory?)...
Even shorter: Use -> for pointers (i.e. dynamic memory), and . for arrays and such (static memory?)...
Thanks both of you. That made no sense so no problem. I know abouts pointers but I still need to work with them more. Unsure about all the different ways you can declare one. Still, thanks for clearing that up for me.
Just one thing, "sprites[0]" is not unnecssary. The GBA can store a maximum of 128 different sprites and they are all stored in the Object Attribute Memory. So you know, I have to tell which sprite it is I'm using, out of all those 128 ones. And you can't just write a single one to the memory. All of them have to be copied at ones. So basically, I have created a structure array with 128 fields, each for one sprite.
Thanks again, really helped me understand that stuff better.
I was just pointing out that "sprites[0]" is totally and exactly the same as "*sprites". Obviously if you're using more than one, it just makes sense to access even the first element with the array subscript operator, so yeah.
Or simply "sprite", at least it works that way in Java, so piss off...
BTW, I hate Java... XD
http://www.epforums.org/showthread.php?t=43397
Hmm, this looks pretty ok, might sort it out alphabetically and in an relevant order, such as console programming etc etc.
Hmm, I have a small inquiry regarding C
I would like to create something that when a single character is entered you are prompted
for example I would enter the letter "c" then because I entered this single character an option would come up?
You could use a switch statement to do that.Hmm, I have a small inquiry regarding C
I would like to create something that when a single character is entered you are prompted
for example I would enter the letter "c" then because I entered this single character an option would come up?
Hmm, a simple thing I could have looked over, if it turns out to be the case, I'm going to kick myself.
Anyone know good sytes for allegro?
Definition: "love" is making a shot to the knees of a target 120 kilometers away using a Aratech sniper rifle with a tri-light scope
:: There are one-zero kinds of people. Those who understand binary and F others who understand hex ::
Webmaster of:
http://Irregular-Network.22web.net
My PSX ISO's List:
updated 4.01.2006 (way pass expiration date, but I still got all what's on the list so request away)
Here
http://www.talula.demon.co.uk/allegro/
Might be a nice link
That's a good syte, thanks.
Definition: "love" is making a shot to the knees of a target 120 kilometers away using a Aratech sniper rifle with a tri-light scope
:: There are one-zero kinds of people. Those who understand binary and F others who understand hex ::
Webmaster of:
http://Irregular-Network.22web.net
My PSX ISO's List:
updated 4.01.2006 (way pass expiration date, but I still got all what's on the list so request away)
Here
Hmm, I'm going to be dabbling in some DS programming there are actually quite a few small tutorials, but for the time being I'm going to try out this one http://www.dsprogramming101.com/
The NES programming link has died
http://www.epforums.org/programming-...x.html?t=43397
Has it? I'll see if I can't sort that out
Edit: replaced with another link
Last edited by Stark; 23rd-February-2007 at 06:23.