Indeed :) The syntax seems a bit backwards to me however. I figured the syntax was "new type amount", and since the type I want is float[3] and the amount is N I seemed to get it wrong.
Type: Posts; User: cppfreak
Indeed :) The syntax seems a bit backwards to me however. I figured the syntax was "new type amount", and since the type I want is float[3] and the amount is N I seemed to get it wrong.
As Laserlight pointed out there was indeed a mistake in the first post, I have corrected it now (happens when you are in a hurry).
Thank you for your answers. I fond that using
arr=new...
I'm having trouble getting to grips with the syntax of new in c++. I come from a C background.
The thing is I have a an array
float (*arr)[3]
so a pointer to an array of 3 floats. I now...