I'm attempting to create an array of structs. The struct name "person" is defined in the .h, then in my constructor in my .cpp, i have the following code:
in actuality, the person entry[index]; will be in a while loop, as I dont know how many structs i need ahead of time. When i go to compile, i get the following errors:
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
'entry' : unknown size
Why isn't it reading my variable "index" size as 10? Do i have to use DMA or something?..
Using Microsoft Visual C++ 6.0