> Thanks. It's amazing!
>
[quoted text clipped - 12 lines]
>>
>> -cd
In case that's not clear, here's some code (compiled without /clr) :-
#include <iostream>
#include <vector>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> vecint;
vecint.push_back(100);
vecint.push_back(500);
vecint.push_back(200);
for each(int i in vecint)
cout << i << endl;
}

Signature
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
> You can use "for each" in native apps too [it's a non-standard feature
> you'd find pretty handy]
[quoted text clipped - 15 lines]
>>>
>>> -cd
Edward Yang - 09 Sep 2005 04:43 GMT
Thanks again for your code. I did not realize that it also works for
native code. That's amazing (again). :-)
> In case that's not clear, here's some code (compiled without /clr) :-
>
[quoted text clipped - 11 lines]
> cout << i << endl;
> }