houksyndrome
Technical User
I am writing a program that reads (x,y,z) coordinates from a text file and then manipulates them. I need to store the (x,y,z) coordinates in an array. The problem is that there is a different number of points in each file, so I need to use dynamic memory allocation. I have tried using a command like:
float ptarray=new datatype[arraysize], with arraysize being a variable. However, this doesn't work. I would be grateful for any help.
float ptarray=new datatype[arraysize], with arraysize being a variable. However, this doesn't work. I would be grateful for any help.