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 » How to do interation on Vector<String>
Re: How to do interation on Vector<String> [message #10649 is a reply to message #10633] Fri, 20 July 2007 14:06 Go to previous messageGo to previous message
johnevans77 is currently offline  johnevans77
Messages: 38
Registered: July 2007
Member
I have revised the code:

Vector<String> v2;

v2.Add("Str1");
v2.Add("Str2");
v2.Add("Str3");


for (Vector<String>::Iterator b = v2.Begin(), e = v2.End(); b != e; b++)
{
std::cout << "member " << " : " << *b << std::endl;
}

Compiles OK, but i have this strange output:


member : 0x80cafb0
member : 0x80cafb4
member : 0x80cafb8


Not, Str1, Str2, Str3 as expected.

UPDATED:
and now it behave strange. I compile it second time and many errors are produced. I am using Slackware 11, with GCC version 3.4.6.

Thanks
JE

[Updated on: Fri, 20 July 2007 14:20]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem using Split on carriage return
Next Topic: Can I extend the Serialization to other types?
Goto Forum:
  


Current Time: Thu May 09 12:04:39 CEST 2024

Total time taken to generate the page: 0.01653 seconds