May 10, 2010 at 11:52pm UTC
Is this: void attack();
a declaration of a function or the calling of a function? Could it be either?
Last edited on May 10, 2010 at 11:53pm UTC
May 11, 2010 at 1:38am UTC
It's a declaration as long as it's outside another function. When it's inside a function, it's called a "way too long calling of a function".
-Albatross
Last edited on May 11, 2010 at 1:39am UTC
May 11, 2010 at 4:12am UTC
Does a pointer hange the variable? I know that it gets the address but for all intents and purposes does the old var become the new var?
May 11, 2010 at 5:02am UTC
No. A pointer is an alternative way to access data. Using a pointer to reference a variable means that it can change the contents at the address to which it points. Check out the pointer tutorial on this site:
http://www.cplusplus.com/doc/tutorial/pointers/