;o) Nick .. you evaded my question
My problem is that I cannot 'think' in terms of addressOf and pointers. It may probably be bad netEtikette to play the ball up against the lot of you, instead of trying out what works. I can get something like a dynamic container of simple structures to work .. but if I look at the code tomorrow, I'll be lost. I've had my nose in Deitel & Deitel's "C++" for some time.
Am I right in that & is used in two different ways (not considering string concatenation and logic). One as an operator .. the other as?
I'll eventually get to be able to juggle the stuff well enough to do DirectX3D, but I just caught sight of the ease of PROCESSING and am sort of caving in on the C++.
int number ;
.. can I think of "int * " in
int * ptrNumber ;
as an lValue of type (int *) that equals the rValue &number. Equal in the sense that they are identical but must be placed left and right.
I think that I get it:
cpp:
void doSomething( int angle ) ; ... here angle is an lValue
main:
doSomething( 24 ) ; ... here 24 is an rValue
Carsten53T:
;o) Nick .. you evaded my question
...
Am I right in that & is used in two different ways (not considering string concatenation and logic). One as an operator .. the other as?
I'll eventually get to be able to juggle the stuff well enough to do DirectX3D, ...
I try to be helpful, really I do. But when you ask on the Arduino forum about doing DirectX3D, are you sure you are in the right place? If you could relate your question to the Arduino, that might help.
Nick just pointed out that you didn't present a real question that can be answered. But my answer to you question is "Yes, you have to implement something with pointers & adressOf."
You really cannot write anything but the most trivial C++ programs unless you have a good grasp of pointers.