Pointers Or References
|
Coolness: 340340
| which to use, which to use.
*ponders* |
|
Coolness: 161220
| huh? |
|
Coolness: 239295
| :lol
Lee |
|
Coolness: 165475
| well it depends what kind of access and computing speed you need :) |
|
Coolness: 340340
| i chose references fo this.
references are easier too. |
|
Coolness: 165475
| references are only good if you have no need to change the variable value! if you have to lets say increment or anything you would use a pointer but it really comes down to a good analyse of the problem and well a suitable solution ! |
|
Coolness: 340340
| err.. references can do everything a pointer can, they just can't be reassigned.. |
|
Coolness: 72360
| you really need to get laid. |
|
Coolness: 340340
| yes, that is TOTALLY the solution to all of lifes problems. |
|
Coolness: 72360
| no just to yours. |
|
Coolness: 340340
| 5368616D6520796F7520736565206E6F206F74686572206D65616E696E6720696E206C696665206F74686572207468616E20746F20737469636B20796F757220 6469636B20696E20736F6D657468696E67207765742065683F |
|
Coolness: 72360
| too lazy to find a translator...
u wanna say that in good ol english? |
|
Coolness: 340340
| 6E6F |
|
Coolness: 72360
| im guessing thats a no. |
|
Coolness: 340340
| 686F7720706572737069636163696F75732E |
|
Coolness: 72360
| yaaaaaaaa
so if you could go ahead and put that cover sheet on the TPS reports, well that would be just grrrrrrrreeeeeeeeeeeeeaaaat... u did get the memo didnt you??? |
|
Coolness: 340340
| you're confusing retarded office banter with HEX it seems. |
|
Coolness: 72360
| its from office space.
and i know what HEX is... k thanks. |
|
Coolness: 165475
| heahaeh BATTLE OF THE GEEKS! GEEX-WARZ
no but seriously some problem will be easier to solve with references and others with pointers! if your function needs to change a variable well pointers is the way to go but if you dont need and dont wANT to change it make sure to use a reference that way your code is more secure and clear from someone else point of view!
its all about security!
ps: since when this board is programming related ? heahea |
|
Coolness: 194700
| someone's getting into C huh :D |
Pointers Or References
You must be logged in to post a reply.