Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array of float

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I am working with MFC and I need an array of float.
Is there a class predefined to make this ?
I used MSDN to know but I didn't find.

If there is no class predefined, maybe I could use this

float my_Array[ ];

but I don't know the size of my array and I have problems to allocate memory

Someone can help me ?

Thanks
 
Thanks for your help but I have still problems.

I made this :

CArray <float,float> aStat0;

And when I want to set the size of my array, I can't choose the method SetSize.

What can I do ?

Thanks
 
Thanks for your help but I have still problems.

I made this :

CArray <float,float> aStat0;

And when I want to set the size of my array, I can't choose the method SetSize.

What can I do ?

Thanks
 
I'm guessing that you mean that it doesn't show up in the IntelliSense list of available functions. I don't know why this is. But the function works fine. Just type it in.

aStat0.SetSize( 40 );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top