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
icon9.gif  VectorIndex [message #24158] Wed, 30 December 2009 10:14 Go to previous message
exdatis is currently offline  exdatis
Messages: 7
Registered: December 2009
Location: Vojvodina
Promising Member
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.

[Updated on: Wed, 30 December 2009 10:19]

Report message to a moderator

 
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: Wed May 08 17:20:34 CEST 2024

Total time taken to generate the page: 0.03294 seconds