By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,600 Members | 1,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,600 IT Pros & Developers. It's quick & easy.

C Syntax Question

P: n/a
I was going over MSDN to find a way to enumerate files using C++. I
came across some syntax that looks like:
DirectoryInfo^ di = gcnew DirectoryInfo("..\\GA\\Files");
array<FileInfo^>^fiArr = di->GetFiles();
Collections::IEnumerator^ myEnum = fiArr->GetEnumerator();
while ( myEnum->MoveNext() )
{
FileInfo^ fri = safe_cast<FileInfo^>(myEnum->Current);
Console::WriteLine( fri->Name );
}

My question is, what are all the "^" and if there is any documentation
anyone knows off so that I can read about it

regards,
Abhi

Jun 14 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ab************@gmail.com wrote:
>
I was going over MSDN to find a way to enumerate files using C++. I
came across some syntax that looks like:
DirectoryInfo^ di = gcnew DirectoryInfo("..\\GA\\Files");
array<FileInfo^>^fiArr = di->GetFiles();
Collections::IEnumerator^ myEnum = fiArr->GetEnumerator();
while ( myEnum->MoveNext() )
{
FileInfo^ fri = safe_cast<FileInfo^>(myEnum->Current);
Console::WriteLine( fri->Name );
}

My question is, what are all the "^" and if there is any documentation
anyone knows off so that I can read about it
news:comp.lang.c++

--
pete
Jun 14 '07 #2

P: n/a
pete wrote:
ab************@gmail.com wrote:
>I was going over MSDN to find a way to enumerate files using C++. I
came across some syntax that looks like:
DirectoryInfo^ di = gcnew DirectoryInfo("..\\GA\\Files");
array<FileInfo^>^fiArr = di->GetFiles();
Collections::IEnumerator^ myEnum = fiArr->GetEnumerator();
while ( myEnum->MoveNext() )
{
FileInfo^ fri = safe_cast<FileInfo^>(myEnum->Current);
Console::WriteLine( fri->Name );
}

My question is, what are all the "^" and if there is any documentation
anyone knows off so that I can read about it

news:comp.lang.c++
No. It's a Microsoft extension, either C# or C++/CLI and is also offtopic
in comp.lang.c++. Try a programming newsgroup about .NET.

--
Thomas
http://www.netmeister.org/news/learn2quote.html
Jun 14 '07 #3

P: n/a

<ab************@gmail.comwrote in message
news:11*********************@q19g2000prn.googlegro ups.com...
>I was going over MSDN to find a way to enumerate files using C++. I
came across some syntax that looks like:
DirectoryInfo^ di = gcnew DirectoryInfo("..\\GA\\Files");
array<FileInfo^>^fiArr = di->GetFiles();
Collections::IEnumerator^ myEnum = fiArr->GetEnumerator();
while ( myEnum->MoveNext() )
{
FileInfo^ fri = safe_cast<FileInfo^>(myEnum->Current);
Console::WriteLine( fri->Name );
}

My question is, what are all the "^" and if there is any documentation
anyone knows off so that I can read about it
It's a Chinese hat.
It means your job is about to be exported to China. Microsoft put them in so
the new programmers would feel at home.

Jun 16 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.