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
Void pointer to NTL Array and VectorMap [message #26390] Thu, 29 April 2010 19:14 Go to previous message
manfhe is currently offline  manfhe
Messages: 5
Registered: April 2010
Location: Brasil
Promising Member
Hello

I have a void pointer to an NTL Array and VectorMap, how do I receive the elements through the key?
The code looks like this:


	typedef VectorMap<String, String> ntlMap;
	typedef Array<String> ntlArray;
	
	void* ptra;
	void* ptrm;
	
	ptra = new ntlArray;
	ptrm = new ntlMap;
	
	for(int i = 0; i < ((ntlMap*)ptrm)->GetCount(); i++)
		((ntlArray*)ptra)->???? = ((ntlMap*)ptrm)->????;


And I would like to thank all contributors to this project. For beginners in C + + as I, U + + is a true teacher.

Grateful, Alan
 
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: Mon May 06 00:25:24 CEST 2024

Total time taken to generate the page: 0.02042 seconds