C Syntax Question

Discussion in 'C Programming' started by abhishekkarnik@gmail.com, Jun 14, 2007.

  1. Guest

    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, 2007
    #1
    1. Advertising

  2. pete Guest

    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
     
    pete, Jun 14, 2007
    #2
    1. Advertising

  3. pete wrote:
    > 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
     
    Thomas J. Gritzan, Jun 15, 2007
    #3
  4. <> wrote in message
    news:...
    >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.
     
    Malcolm McLean, Jun 16, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gabriele renzi
    Replies:
    2
    Views:
    232
    gabriele renzi
    Dec 31, 2005
  2. Ken Bloom
    Replies:
    3
    Views:
    230
  3. Good Night Moon
    Replies:
    9
    Views:
    306
    Rick DeNatale
    Jul 25, 2007
  4. Jacob Grover
    Replies:
    5
    Views:
    339
    Jacob Grover
    Jul 18, 2008
  5. Mark Richards
    Replies:
    3
    Views:
    336
    Tad McClellan
    Nov 18, 2007
Loading...

Share This Page