They are used to point. |:
what good are they? How can they help me...
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
Oh, sorry, it's 3:30 AM.. I can't think straight right now.
They are good for indirectly accessing things
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
Well then don't explain, I've re-read the entire pointers section multiple times... I can't see how they would benefit me. I'll wait for somebody else to explain it to me. It's not that important at the moment so I don't really care. But thats why I asked it now, not when it would be important see I can halfthink while I'm halfasleep.
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
Ill explain a few reasons.
1.Accessing class member data
2.Accessing data on the free store
3.Passing variables by reference to functions
VvITylerIvV (08-10-2010)
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
You point at say, the game's HEALTH variable. You tell your program to change it to 100.
That's an example.
pointers are not necessarily used for hacking.. and its called pointer because in that case it is pointing to the memory address (ex: 0x0001337) which contains in it the value of health.
Pointer is just a way of getting access to memory without using the variable it self.. in programming a common way of using that is by changing a var value without actually using it, all this by using it's reference. (address)
edit:
a good example here:
[php]#include <iostream>
using namespace std;
void person(int *age) // *age is a pointer
{
*age = 20; //pointing to personAge
}
int main()
{
int personAge;
person(&personAge); //this is passing var reference
cout << personAge;
return 0;
}[/php]
output:
Code:20
Last edited by 'Bruno; 08-10-2010 at 10:07 PM.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
-Raz0r- (08-11-2010),Melodia (08-11-2010),Void (08-11-2010),VvITylerIvV (08-11-2010)
Favourite quotes:
Definition of computing: The use or operation of computers.Code:I don't need easy, I just need possible. ~ Me There are three birds on a fence. Two decide to fly away, how many are left? Three, just because you decide to do something doesn't mean you've done it. ~ Don't know who said this Do not go where the path may lead, go instead where there is no path and leave a trail. ~ Ralph Waldo Emerson
Turning on my computer = computing = programming
LAWLFAIL
VvITylerIvV (08-11-2010)