Re: Does MC++ have foreach?
- From: Edward Yang <neo_in_matrix@xxxxxxx>
- Date: Tue, 06 Sep 2005 12:35:20 +0800
Thanks. It's amazing!
Carl Daniel [VC++ MVP] wrote:
Edward Yang wrote:
I am testing VS 2005 Express August CTP.
I am very thrilled by the fact that I can write code agaist the .NET Framework (in new syntax). Now I have a question - I want to enumerate all elements in a collection. In C# or VB, I'd use foreach or For Each. But classic C/C++ does not have such a keyword. I want to know if there is a workaround or template function?
C++/CLI (as implemented in VS2005) includes for each (two words) - use it just like you would in C#
See http://msdn2.microsoft.com/library/ms177202(en-us,vs.80).aspx
-cd
.
- Follow-Ups:
- Re: Does MC++ have foreach?
- From: Nishant Sivakumar
- Re: Does MC++ have foreach?
- References:
- Does MC++ have foreach?
- From: Edward Yang
- Re: Does MC++ have foreach?
- From: Carl Daniel [VC++ MVP]
- Does MC++ have foreach?
- Prev by Date: Re: Does MC++ have foreach?
- Next by Date: Embed the Office Word Viewer 2003 in my own application
- Previous by thread: Re: Does MC++ have foreach?
- Next by thread: Re: Does MC++ have foreach?
- Index(es):
Relevant Pages
|