Quote Originally Posted by why06 View Post
Well I didn't know so I figured I'd just got over everything .... actually that took a long time.

Anyway the return sort of acts like a break statement. Since a function can only return once the first return that executes ends the code.


And yeh I lot of people put the * on the type, but its a little misleading because C++ doesn't recognize the type as pointers only specific variables. Say if you wanted to declare multiple pointer variables at once:

Code:
int* a, b, c;  // This would not work.
Code:
int *a, *b, *c;   // This would.
Some people who do this are just trying to make a point that Microsoft should change C++ to make an entirely new pointer type. :L
Sorry for wasting your hard work >_<.
But yeah i do it like
Code:
int* a, * b, * c;
*b = 3
*c = 34
Because to me putting the * beside int while making the variables is to remind me that when initializing
Code:
int* a = address
That at this state a is the address, and not the pointed to value. Otherwise i might confuse my self and think, hey there is an * beside the variable, that means the value pointed by, thus im gonna put what i want the pointed to value to be.