ok...so far I know what pointers do and how they are done:
If I have written the code correctly, it should work. What i'd like to know is why pointers are needed when it is just as easy it do the following:Code:// I'm not not sure if I have put the splats (*'s) in the right places, so correct me if i'm wrong... int thing; int* pointer; // declare "pointer" a pointer pointer = *thing; // make it point to "thing" pointer* = 10; // store 10 in what it points to
ThanksCode:int thing = 10;
-Chris