Home » U++ Library support » U++ Core » How to do interation on Vector<String>
How to do interation on Vector<String> [message #10633] |
Fri, 20 July 2007 09:05 |
johnevans77
Messages: 38 Registered: July 2007
|
Member |
|
|
Dear all,
I followed tutorial on Container. Tried Vector<int> and worked. No problem.
Then i try to use Vector<String>. But, why this iteration code produce error message?
Vector<String> v2;
v2.Add("Str1");
v2.Add("Str2");
v2.Add("Str3");
for (Vector<String>::Iterator b = v.Begin(), e = v.End(); b != e; b++)
{
std::cout << "member " << " : " << *b << std::endl;
}
Please advise,
JE
|
|
|
Goto Forum:
Current Time: Sat Apr 27 14:01:36 CEST 2024
Total time taken to generate the page: 0.05108 seconds
|