Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Void pointer to NTL Array and VectorMap
Re: Void pointer to NTL Array and VectorMap [message #26394 is a reply to message #26393] Thu, 29 April 2010 22:16 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Hi, a shorter version is below. But there is usually a better alternative to using void* type in the first place.

for(int i = 0; i < ((ntlMap*)ptrm)->GetCount(); i++)
    (*(ntlArray*)ptra)[i] = (*(ntlMap*)ptrm)[i];


Regards,
Sandor
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: image drawing
Next Topic: [SOLVED]destroying self from array
Goto Forum:
  


Current Time: Sat Jun 01 04:50:32 CEST 2024

Total time taken to generate the page: 0.01801 seconds