Posts: 860
Threads: 10
Joined: Aug 2008
Reputation:
0
EDIT: Wrongly understood.
Posts: 1,047
Threads: 23
Joined: Jun 2009
Quote:
Originally Posted by tal_peretz
Thank you !
Another question -
I seen in function this -
PHP код:
stock GetDateOffeset(&year,&month,&day,offset)
What is the & symbol here ?
Thanks
|
& returns the adress of a variable so the function can set a value on the given adress.
if you want more info I would like to redirect you to
http://www.cplusplus.com/doc/tutorial/pointers/
Quote:
The memory of your computer can be imagined as a succession of memory cells, each one of the minimal size that computers manage (one byte). These single-byte memory cells are numbered in a consecutive way, so as, within any block of memory, every cell has the same number as the previous one plus one.
This way, each cell can be easily located in the memory because it has a unique address and all the memory cells follow a successive pattern. For example, if we are looking for cell 1776 we know that it is going to be right between cells 1775 and 1777, exactly one thousand cells after 776 and exactly one thousand cells before cell 2776.
|
Posts: 48
Threads: 10
Joined: May 2011
Reputation:
0
1. replace == with &
2. its a pointer, ****** this pls, im with pda online cant post a link
tion
Posts: 305
Threads: 87
Joined: Apr 2011
Reputation:
0
So to do if(x==3) its like to do if(x&3)?