Closed Thread
Results 1 to 2 of 2

Thread: Arrays in NET 2.0 or CLI Managed C++

  1. #1
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23

    Arrays in NET 2.0 or CLI Managed C++

    Arrays are a pain in the butt in CLI C++. Everytime I need to create one I have to look it up again. Here is how you create one:

    Byte of 256:
    array<Byte^>^ byte = gcnew array<Byte^>(256);

    String
    array<String^>^ strarray = gcnew array<String^>(10);

    Here is a jagged array
    <B>array<array<int>^>^ arr = gcnew array<array<int>^> (5);</B>


    Let me know if you need any help with arrays.
    Void

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    NeedHelp Guest
    Nice post. Arrays are a pain in managed C++. C# is so much easier to create them. What happened to the old way of arrays anyway? You know, String[200].....

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C Defining Data Arrays And Not BSS Arrays?
    By RhetoricalRuvim in forum C and C++
    Replies: 1
    Last Post: 09-02-2011, 07:59 AM
  2. C to managed C++
    By andnas_2000 in forum Managed C++
    Replies: 2
    Last Post: 01-30-2008, 09:16 AM
  3. C++ v. Managed C++
    By Kaabi in forum Managed C++
    Replies: 1
    Last Post: 11-07-2007, 06:48 PM
  4. Managed C++ vs C# IDE
    By Crane in forum Managed C++
    Replies: 2
    Last Post: 09-05-2006, 09:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts