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 » U++ Library support » U++ Core » VectorIndex
Re: VectorIndex [message #24164 is a reply to message #24158] Wed, 30 December 2009 12:06 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
exdatis wrote on Wed, 30 December 2009 04:14

Is that right ?

int index_test = 0;
for(Vector<TownLs>::Iterator q = ls_town->Begin(), e = ls_town->End(); q != e; q++)
{
TownLs temp = *q;
if(temp.getName() == "Pancevo")
break;
index_test++;
}
PromptOK(AsString(index_test)); // index

//desc: ls_town is pointer (Vector<TownLs>)

Better method, any?

Thanks.


Consider using Index instead of Vector...

Mirek
 
Read Message icon9.gif
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Previous Topic: FtpClient use with Progress FIX
Next Topic: ptr
Goto Forum:
  


Current Time: Fri Jun 07 06:16:30 CEST 2024

Total time taken to generate the page: 0.02206 seconds